-
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
Query Loop: Update modal role and focus first element #54507
Query Loop: Update modal role and focus first element #54507
Conversation
@jeryj, @alexstine, I've added you as reviewers as this is accessibility-related. Let me know if this change is OK or if there's a better way to handle the modal. Thanks! 😊 |
Size Change: +21 B (0%) Total Size: 1.62 MB
ℹ️ View Unchanged
|
Flaky tests detected in ad90d7c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6199960019
|
Still not entirely sure how to test this? |
Could you expand on this testing instruction? I've been adding blocks inside the Query Loop but not one that will trigger the modal to pop up. Can you recommend some specific blocks for us to add, and where to add them within the Query Loop? |
Oh, sure! @alexstine, @jeryj, sorry for the confusion; I didn't know what name to use. 😅 By any plugin block I meant any third-party block, i.e., those not bundled in WordPress or Gutenberg, installed from the Block Directory. Any of them should make the modal appear. EDIT: I've updated the testing instructions. |
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.
We're going to merge this now, but if you test it later and think we should change something, please let us know.
What?
Makes the "Enhanced pagination will be disabled" modal to be announced by screen readers, also focusing the "OK" button.
Suggested by @SantosGuillamot.
Why?
To improve accesibility.
How?
Adding the following properties to the
Modal
component.Testing Instructions