Skip to content

Commit 371d320

Browse files
committed
Use hard-coded default placeholder color
IE 11 doesn't support opacity properly on placeholders and causes the entire input to render with that opacity. This fixes that bug.
1 parent 057c6ff commit 371d320

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ textarea {
484484

485485
input::placeholder,
486486
textarea::placeholder {
487-
color: inherit;
488-
opacity: 0.5;
487+
color: #a0aec0;
489488
}
490489

491490
button,

__tests__/fixtures/tailwind-output.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ textarea {
484484

485485
input::placeholder,
486486
textarea::placeholder {
487-
color: inherit;
488-
opacity: 0.5;
487+
color: #a0aec0;
489488
}
490489

491490
button,

src/plugins/css/preflight.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ textarea {
131131

132132
input::placeholder,
133133
textarea::placeholder {
134-
color: inherit;
135-
opacity: 0.5;
134+
color: #a0aec0;
136135
}
137136

138137
button,

0 commit comments

Comments
 (0)