-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Components: Fix label and placeholder handling in LinkControlSearchInput
#70096
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
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. |
packages/block-editor/src/components/link-control/search-input.js
Outdated
Show resolved
Hide resolved
@im3dabasia, I think some failing e2e tests are caused by this change. We need to evaluate each of those, then A) Update the text if failure is expected after this change. |
@im3dabasia, do you mind rebasing this on top of the latest trunk? Thank you! |
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 working on this, @im3dabasia!
…nput` (WordPress#70096) Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
What?
This PR fixes accessibility issues in the LinkControlSearchInput component by ensuring proper handling of labels and placeholders in different scenarios.
Closes #69652
Why?
In #65458, changes were made to match the visible placeholder with the ARIA label, but this approach caused issues when the component has a visual label (when hideLabelFromVision is false), leading to overlapping text. This PR provides a more robust solution that addresses all accessibility scenarios.
How?
The solution properly handles labels and placeholders to ensure accessibility in all scenarios mentioned in the issue:
Testing Instructions