Skip to content

Commit 26b2588

Browse files
author
Jonathan Neal
committed
Normalize file select buttons (#574)
1 parent 2c4e218 commit 26b2588

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

normalize.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ select { /* 1 */
293293
/**
294294
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
295295
* controls in Android 4.
296-
* 2. Correct the inability to style clickable types in iOS.
296+
* 2. Correct the inability to style clickable types in iOS and Safari.
297297
*/
298298

299299
button,
@@ -408,3 +408,13 @@ textarea {
408408
color: inherit;
409409
opacity: 0.54;
410410
}
411+
412+
/**
413+
* 1. Correct the inability to style clickable types in iOS and Safari.
414+
* 2. Change font properties to `inherit` in Chrome and Safari.
415+
*/
416+
417+
::-webkit-file-upload-button {
418+
-webkit-appearance: button; /* 1 */
419+
font: inherit; /* 2 */
420+
}

0 commit comments

Comments
 (0)