Skip to content

Commit

Permalink
fix(formfield): float label to start for outline formfields (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopy-cat authored and GitHub Enterprise committed Dec 10, 2020
1 parent 0d075e8 commit f068094
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions projects/ng-aquila/src/formfield/formfield.scss
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ $outline-padding: 7px;

// Provide the floating behavior
.nx-formfield.is-floating {

.nx-formfield__label {
transform: translateY(v(formfield-floating-distance));
@include type-style(formfield-label);
Expand All @@ -364,7 +363,6 @@ $outline-padding: 7px;
}

&.has-outline {

.nx-formfield__label {
padding-top: 0;
transform: translateY(v(formfield-outline-floating-distance));
Expand All @@ -373,9 +371,17 @@ $outline-padding: 7px;

.nx-formfield__prefix ~ .nx-formfield__input {
.nx-formfield__label {
padding: 0 $outline-padding;
padding: 0;
}
}

.nx-formfield__input-container {
position: relative;
}

.nx-formfield__input {
position: unset;
}
}
}

Expand Down

0 comments on commit f068094

Please sign in to comment.