Skip to content

Commit

Permalink
InputControl: Ensure consistent placeholder color (#69334)
Browse files Browse the repository at this point in the history
* InputControl: Ensure consistent placeholder color

* InputControl: Add CHANGELOG entry

* InputControl: Remove unnecessary line-height styles

Co-authored-by: SainathPoojary <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
  • Loading branch information
5 people authored Feb 27, 2025
1 parent a02bf96 commit 47fdb90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bug Fixes

- `TextControl`: Ensures email and url inputs have consistent LTR alignment in RTL languages ([#68561](https://github.com/WordPress/gutenberg/pull/68561)).
- `InputControl`: Ensure consistent placeholder color ([#69334](https://github.com/WordPress/gutenberg/pull/69334)).

### Enhancement

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,15 @@ export const Input = styled.input< InputProps >`
${ customPaddings }
&::-webkit-input-placeholder {
line-height: normal;
color: ${ COLORS.ui.darkGrayPlaceholder };
}
&::-moz-placeholder {
color: ${ COLORS.ui.darkGrayPlaceholder };
}
&:-ms-input-placeholder {
color: ${ COLORS.ui.darkGrayPlaceholder };
}
&[type='email'],
Expand Down

0 comments on commit 47fdb90

Please sign in to comment.