Skip to content

Commit b5ffb63

Browse files
author
Dominic Magnifico
committed
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.
1 parent 5973b6a commit b5ffb63

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

normalize.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,20 +252,17 @@ samp {
252252
*/
253253

254254
/**
255-
* 1. Correct color not being inherited.
256-
* Known issue: affects color of disabled elements.
257-
* 2. Correct font properties not being inherited.
258-
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
255+
* 1. Correct font properties not being inherited.
256+
* 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
259257
*/
260258

261259
button,
262260
input,
263261
optgroup,
264262
select,
265263
textarea {
266-
color: inherit; /* 1 */
267-
font: inherit; /* 2 */
268-
margin: 0; /* 3 */
264+
font: inherit; /* 1 */
265+
margin: 0; /* 2 */
269266
}
270267

271268
/**

0 commit comments

Comments
 (0)