-
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
Fix lock modal dialog accessibility and semantics #62795
Conversation
Size Change: -10 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
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.
Accessibility testing well but needs code review. GitHub's new and improved diff experience for screen reader users sucks worse than an Atlassian product 😞. Hopefully someone will be around to check this eventually.
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. |
628720c
to
5d02458
Compare
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 think the code is absolutely fine. NVDA's speech has changed to the following:
When the Lock modal is opened
Before:
Lock Navigation
heading level 1 Lock Navigation
button Close
Choose specific attributes to restrict or lock all available options.
grouping check box not checked Lock all
list with 3 items check box not checked Restrict editing
check box not checked Disable movement
check box not checked Prevent removal out of list
check box not checked Apply to all blocks inside out of grouping
button Cancel
button Apply
After:
Lock Navigation
heading level 1 Lock Navigation
button Close
grouping Choose specific attributes to restrict or lock all available options.
list with 1 item check box not checked Lock all list with 3 items check box not checked Restrict editing
check box not checked Disable movement
check box not checked Prevent removal out of list out of list
check box not checked Apply to all blocks inside out of grouping
button Cancel
button Apply
When the form elements are focused in order
Before:
Lock all grouping Lock all check box not checked
list with 3 items Restrict editing check box not checked
Disable movement check box not checked
Prevent removal check box not checked
Apply to all blocks inside check box not checked
After:
Choose specific attributes to restrict or lock all available options. grouping list with 1 item Lock all check box not checked
list with 3 items Restrict editing check box not checked
Disable movement check box not checked
Prevent removal check box not checked
Apply to all blocks inside check box not checked
Thanks all for your feedback and review. Ideally, the legend text should be a little more concise. The current one is too long: It's also unclear what the difference between attributes and options is. Actually, I don't think it really matters for users. If anyone can think of a shorter, simpler, text to name the group I'd gladly update it. |
I agree with this, but I can't think of a good copy right now 😅 Perhaps we can address this in a follow-up. |
I will split the wording into a separate issue, as I think the options naming could be improved as well. |
5d02458
to
c6efdcc
Compare
Fixes #47248
What?
Labeling and semantics of the block lock modal dialog can be improved.
Why?
How?
Testing Instructions
<fieldset>
element with a<legend>
element that gives the fieldset a name.common.css
.Testing Instructions for Keyboard
Screenshots or screencast
Screenshots before and after: