-
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
Add aria-expanded to social link url popover trigger #64949
base: trunk
Are you sure you want to change the base?
Conversation
By moving the blockProps for the social icon from the <li> to the <button>, we get the appropriate behavior of being able to select and create social icons with a clean keyboard behavior.
…tent with other focus styles
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. |
Size Change: +11 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
Flaky tests detected in b74d25a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10638683231
|
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
@jeryj the PR is pointing to another branch instead of |
<button aria-haspopup="dialog" { ...blockProps }> | ||
<button | ||
aria-haspopup="dialog" | ||
aria-expanded={ isURLPopoverOpen.toString() } |
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.
Is it necessary to convert this to string? Just genuinely asking because it's the first time I see this pattern.
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.
You're right - it's not necessary! Thanks for catching!
@cbravobernal It was going to give me rebase errors due to #64883, so I'll just wait to merge this until I can point this to trunk. |
f49c692
to
49c47e2
Compare
f49c692
to
eb95d1b
Compare
8076181
to
8aeebee
Compare
8aeebee
to
411c567
Compare
411c567
to
64ca1c9
Compare
What?
Adds
aria-expanded
semantics to the button that opens the url popoverWhy?
a11y semantics
How?
Checks same semantics for when the popover shows so they stay inline.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast