-
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
[a11y] Fix: aria-haspop and aria-expanded attributes on the inserter button. #53692
[a11y] Fix: aria-haspop and aria-expanded attributes on the inserter button. #53692
Conversation
Size Change: +8 B (0%) Total Size: 1.51 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.
Almost there. Same feedback I left in #53693.
@@ -148,6 +148,8 @@ function HeaderToolbar() { | |||
icon={ plus } | |||
label={ showIconLabels ? shortLabel : longLabel } | |||
showTooltip={ ! showIconLabels } | |||
aria-haspopup="true" |
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.
Delete this attribute.
@@ -216,6 +216,8 @@ export default function HeaderEditMode() { | |||
showIconLabels ? shortLabel : longLabel | |||
} | |||
showTooltip={ ! showIconLabels } | |||
aria-haspopup="true" |
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.
Delete this attribute.
9a45793
to
f4c8671
Compare
Thank you @alexstine the feedback was applied. |
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.
👍 🚢
Part of #24796.
Currently, the inserter button opens an additional UI (inserter sidebar) but lacks aria-haspopup and aria-expanded tags. This PR resolves the issue.
Currently, the publish and sidebar button also open sidebars and already possesses these attributes, making this PR bring consistency to both elements.
Testing