Why currentColor in generated css
Bug, feature request, or proposal:
Maybe a newbie question: Is it normal to have in the generated css : color: currentColor; ?
.mat-input-element {
font: inherit;
background: 0 0;
color: currentColor;
border: none;
outline: 0;
padding: 0;
width: 100%;
vertical-align: bottom;
}
I can see that in the source code of Material there are several places with color: currentColor;
E.g.
.mat-button, .mat-raised-button, .mat-icon-button {
color: currentColor;
.mat-button-wrapper > * {
vertical-align: middle;
}
}
What is the expected behavior?
To have the currentColor replaced by the color code (hexa or rgb/a)?
What is the current behavior?
The following scss from Material
.mat-button, .mat-raised-button, .mat-icon-button {
color: currentColor;
.mat-button-wrapper > * {
vertical-align: middle;
}
}
generates
.mat-input-element {
font: inherit;
background: 0 0;
color: currentColor;
border: none;
outline: 0;
padding: 0;
width: 100%;
vertical-align: bottom;
}
Why currentColor is not replaced by a value?
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Angular 4.0.1, Angular CLI 1.0.0, Material 2.0.0-beta.3, node 7.5.0, npm 4.2.0
Is there anything else we should know?
Ok, after searching :
- icon.md
- https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentColor_keyword
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.