-
Notifications
You must be signed in to change notification settings - Fork 0
π¨ Palette: Improve accessibility of More options button in EventAnnotations #207
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
Open
aarjava
wants to merge
3
commits into
main
Choose a base branch
from
palette/event-annotations-a11y-9911832414064100094
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7
β1
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
46caa9a
π¨ Palette: Add ARIA attributes to More options button in EventAnnotatβ¦
google-labs-jules[bot] 5c57102
π¨ Palette: Add ARIA attributes to More options button in EventAnnotatβ¦
google-labs-jules[bot] 970885d
π¨ Palette: Add ARIA attributes to More options button in EventAnnotatβ¦
google-labs-jules[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ## 2025-02-12 - Added ARIA attributes to icon-only More options button | ||
| **Learning:** Icon-only buttons that trigger menus or dialogs often lack the necessary ARIA attributes to communicate their state and purpose to screen readers. In `EventAnnotations.tsx`, the `MoreHorizontal` button was missing `aria-label`, `aria-expanded`, and `aria-haspopup`. | ||
| **Action:** When implementing togglable menu triggers (e.g., 'More actions' buttons), always ensure they include an 'aria-expanded' attribute reflecting their current state, a descriptive 'aria-label', an 'aria-haspopup' attribute (e.g., 'menu'), and 'aria-hidden="true"' on any purely decorative internal icons. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When this button is opened, the popup rendered below is still a plain
motion.divcontaining native buttons rather than an ARIAmenuwithmenuitems and the expected menu keyboard behavior. In the screen-reader path for this options control,aria-haspopup="menu"now advertises menu semantics that the popup does not implement; either use the existing Radix dropdown menu primitive here or omit/change this attribute until the popup has matching roles and keyboard handling.Useful? React with πΒ / π.