Skip to content

Commit

Permalink
fix: Reset the lower placeholder opacity set by Firefox (#1239)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
alimpens and VincentSmedinga authored May 27, 2024
1 parent b588d10 commit d2b371e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/css/src/components/search-field/search-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

.ams-search-field__input::placeholder {
color: var(--ams-search-field-input-placeholder-color);
opacity: 100%; // This resets the lower opacity set by Firefox
}

.ams-search-field__input::-webkit-search-cancel-button {
Expand Down
1 change: 1 addition & 0 deletions packages/css/src/components/text-area/text-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

.ams-text-area::placeholder {
color: var(--ams-text-area-placeholder-color);
opacity: 100%; // This resets the lower opacity set by Firefox
}

.ams-text-area:disabled {
Expand Down
1 change: 1 addition & 0 deletions packages/css/src/components/text-input/text-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

.ams-text-input::placeholder {
color: var(--ams-text-input-placeholder-color);
opacity: 100%; // This resets the lower opacity set by Firefox
}

.ams-text-input:disabled {
Expand Down

0 comments on commit d2b371e

Please sign in to comment.