Skip to content

Commit 58f9520

Browse files
committed
undo change that caused darkened color for legacy form field
1 parent fa7de2a commit 58f9520

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/lib/form-field/_form-field-legacy-theme.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@
1010
$foreground: map-get($theme, foreground);
1111
$is-dark-theme: map-get($theme, is-dark);
1212

13+
$label-color: mat-color($foreground, secondary-text);
1314
$underline-color: mat-color($foreground, divider, if($is-dark-theme, 0.7, 0.42));
1415

1516
.mat-form-field-appearance-legacy {
17+
.mat-form-field-label {
18+
color: $label-color;
19+
}
20+
21+
.mat-hint {
22+
color: $label-color;
23+
}
24+
1625
.mat-form-field-underline {
1726
background-color: $underline-color;
1827
}

src/lib/form-field/_form-field-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
color: $label-color;
3838
}
3939

40-
.mat-focused .mat-form-field-label {
40+
.mat-form-field.mat-focused .mat-form-field-label {
4141
color: $focused-label-color;
4242

4343
&.mat-accent {

0 commit comments

Comments
 (0)