Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 1775c72

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(input): icons not inheriting theme colors
Fixes the `md-icon` instances inside of a `md-input-container` using the primary color, even though the container is e.g. `md-accent` or `md-warn`. Closes #9058
1 parent 8000c8e commit 1775c72

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/input/input-theme.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,25 @@ md-input-container.md-THEME_NAME-theme {
4545
}
4646

4747
&.md-input-focused {
48-
label {
49-
color: '{{primary-color}}';
50-
}
48+
label,
5149
md-icon {
5250
color: '{{primary-color}}';
5351
}
5452
&.md-accent {
5553
.md-input {
5654
border-color: '{{accent-color}}';
5755
}
58-
label {
56+
label,
57+
md-icon {
5958
color: '{{accent-color}}';
6059
}
6160
}
6261
&.md-warn {
6362
.md-input {
6463
border-color: '{{warn-A700}}';
6564
}
66-
label {
65+
label,
66+
md-icon {
6767
color: '{{warn-A700}}';
6868
}
6969
}
@@ -73,10 +73,9 @@ md-input-container.md-THEME_NAME-theme {
7373
.md-input {
7474
border-color: '{{warn-A700}}';
7575
}
76-
label {
77-
color: '{{warn-A700}}';
78-
}
79-
.md-input-message-animation, .md-char-counter {
76+
label,
77+
.md-input-message-animation,
78+
.md-char-counter {
8079
color: '{{warn-A700}}';
8180
}
8281
}

0 commit comments

Comments
 (0)