Skip to content

Commit 1ea0cc6

Browse files
author
Jonathan Neal
committed
Correct the text style of placeholders in Chrome, Edge, and Safari
Normalizes placeholder styles in Edge, Chrome, and Safari with Firefox.
1 parent ab3abb6 commit 1ea0cc6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

normalize.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,3 +393,12 @@ textarea {
393393
[type="search"]::-webkit-search-decoration {
394394
-webkit-appearance: none;
395395
}
396+
397+
/**
398+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
399+
*/
400+
401+
::-webkit-input-placeholder {
402+
color: inherit;
403+
opacity: 0.54;
404+
}

0 commit comments

Comments
 (0)