-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputControl: Ensure consistent placeholder color #69334
InputControl: Ensure consistent placeholder color #69334
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@SainathPoojary thanks for your PR! Could you please add a changelog entry to |
f581ed7
to
b63b64c
Compare
Sure, @afercia! I’ve added the |
@@ -286,6 +286,15 @@ export const Input = styled.input< InputProps >` | |||
|
|||
&::-webkit-input-placeholder { | |||
line-height: normal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why this line-height was originally added. To me , it doesn't do anything and should be removed. The placement of the placeholder text is handled by the browser as it's an element in the shadow-DOM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback @afercia. I’ve removed the line-height
as suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks! |
What?
Ensures InputControl sets a default placeholder color for consistency across browsers, matching TextareaControl.
Closes #69331
Why?
Previously, InputControl relied on browser defaults, causing slight color variations. This update improves consistency and accessibility.
How?
Testing Instructions
Screenshots or screencast