Skip to content

Commit

Permalink
Use hard-coded default placeholder color
Browse files Browse the repository at this point in the history
IE 11 doesn't support opacity properly on placeholders and causes the entire input to render with that opacity. This fixes that bug.
  • Loading branch information
adamwathan committed Aug 6, 2019
1 parent 057c6ff commit 371d320
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,7 @@ textarea {

input::placeholder,
textarea::placeholder {
color: inherit;
opacity: 0.5;
color: #a0aec0;
}

button,
Expand Down
3 changes: 1 addition & 2 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,7 @@ textarea {

input::placeholder,
textarea::placeholder {
color: inherit;
opacity: 0.5;
color: #a0aec0;
}

button,
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ textarea {

input::placeholder,
textarea::placeholder {
color: inherit;
opacity: 0.5;
color: #a0aec0;
}

button,
Expand Down

0 comments on commit 371d320

Please sign in to comment.