Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(input): icons not inheriting theme colors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
crisbeto authored and ThomasBurleson committed Jul 18, 2016
1 parent 8000c8e commit 1775c72
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/components/input/input-theme.scss
Expand Up @@ -45,25 +45,25 @@ md-input-container.md-THEME_NAME-theme {
}

&.md-input-focused {
label {
color: '{{primary-color}}';
}
label,
md-icon {
color: '{{primary-color}}';
}
&.md-accent {
.md-input {
border-color: '{{accent-color}}';
}
label {
label,
md-icon {
color: '{{accent-color}}';
}
}
&.md-warn {
.md-input {
border-color: '{{warn-A700}}';
}
label {
label,
md-icon {
color: '{{warn-A700}}';
}
}
Expand All @@ -73,10 +73,9 @@ md-input-container.md-THEME_NAME-theme {
.md-input {
border-color: '{{warn-A700}}';
}
label {
color: '{{warn-A700}}';
}
.md-input-message-animation, .md-char-counter {
label,
.md-input-message-animation,
.md-char-counter {
color: '{{warn-A700}}';
}
}
Expand Down

0 comments on commit 1775c72

Please sign in to comment.