-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
<LinkControl>
a11y review
#20136
Comments
#19850 is attempting to fix the focus loss that happens when clicking the X reset button on the search input. |
I started on a keyboard audit of the Suggestions disappear when tabbing from url input to submit buttonSteps to Reproduce
Notes Large focus jump on arrow press when focus is inside
|
I also found this disorienting. I did not know I could get there with @MarcoZehe would you mind helping us here? Have you had any success accessing the controls to edit an inline link in a paragraph text? That is, after an inline link has been created, go back and edit it. |
First of all, it is good UX that the cursor stays in the link text even though the link UI opens. There is nothing more frustrating than the cursor jumping away from the text you're trying to review when some other UI part gets displayed. The same is true for autocompletes, btw. Like the Twitter web UI grabbing focus when you move cursor into a mentioned user name or hash tag. Visually, you may be able to "indicate" (read: fake) focus being in two places at the same time, but for keyboard users, especially screen reader users, there is only one point of focus at any given moment, not two or more, just one. DOM focus for the browser can also only be in one place at a time, too. HTH |
Thank you @MarcoZehe! Your feedback is super useful. |
There was some a11y feedback on the LinkControl component provided on #8573 (comment). Linking here for reference. |
With the new
<LinkControl>
component being the new default hyperlink creation UI in the Editor it's important it is as accessible as it possibly can be.PR authors should reference the Core a11y handbook for guidance on a11y when addressing these issues.
Some areas to focus on:
aria-live
(we would use@wordpress/a11y
speak()
for this)?<input />
element labelled appropriately? Are placeholders suitable? Any other missing a11y attributes?Known Issues requiring fix
We should create new Issues for each problem encountered so they can be addressed piecemeal rather than as an epic PR which risks being blocked.
The text was updated successfully, but these errors were encountered: