Skip to content

Commit

Permalink
fix(formfield): apply expert placeholder styles to textarea (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and GitHub Enterprise committed Mar 1, 2021
1 parent 2725c01 commit aa89c37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion projects/ng-aquila/src/formfield/formfield.scss
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,18 @@ $outline-padding: 7px;
}
}

input {
input, textarea {
@include input-placeholder {
@include type-style(formfield-outline-input-native-placeholder);
@include var(color, formfield-input-native-placeholder-color);
}

&::placeholder {
opacity: 1;
}
}

input {
// to align the placeholder vertically inside the element on firefox the line height
// needs to equal the element height.
// the formfield-outline-control-height tokens are the outer element
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-aquila/src/shared-styles/theming/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ $nx-theme: (
formfield-outline-hint-letter-spacing: paragraph-03-letter-spacing,

formfield-outline-input-native-placeholder-font-size: formfield-outline-control-font-size,
formfield-outline-input-native-placeholder-line-height: formfield-outline-control-font-size,
formfield-outline-input-native-placeholder-line-height: formfield-outline-control-line-height,
formfield-outline-input-native-placeholder-font-weight: 200,
formfield-outline-input-native-placeholder-letter-spacing: formfield-outline-control-letter-spacing,
formfield-outline-input-native-placeholder-color: ui-05,
Expand Down

0 comments on commit aa89c37

Please sign in to comment.