Remove color inheritance for button, input, optgroup, select and textarea elements. Color inheritance here causes possible usability issues when working on black backgrounds with white text. Addresses #349 and #339.

This commit is contained in:
Dominic Magnifico 2016-01-21 23:50:18 -07:00
parent 5973b6a6e8
commit b5ffb63df1

11
normalize.css vendored
View File

@ -252,10 +252,8 @@ samp {
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
* 1. Correct font properties not being inherited.
* 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
button,
@ -263,9 +261,8 @@ input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
font: inherit; /* 1 */
margin: 0; /* 2 */
}
/**