Skip to content

Commit

Permalink
Fix label color on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Aug 16, 2022
1 parent be8614a commit fced170
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions plugin/assets/css/src/components/text-field.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
* limitations under the License.
*/


.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--md-sys-color-primary);
}

/* M2 style with m3 customisation */

.mdc-floating-label {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -555,6 +548,10 @@
color: inherit;
}

.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
color: var(--md-sys-color-primary);
}

.mdc-text-field:not(.mdc-text-field--disabled) {
background-color: var(--md-sys-color-surface-variant, #f5f5f5);
color: var(--md-sys-color-on-surface-variant);
Expand Down

0 comments on commit fced170

Please sign in to comment.