-
Notifications
You must be signed in to change notification settings - Fork 603
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
Correct inactive ActionList.Item behavior in NavList and SelectPanel contexts #5866
Conversation
…ooltip when the role is 'menu' or 'listbox'
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
🦋 Changeset detectedLatest commit: 075695f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
✨
…eact into mp/fix-inactive-actionlist-bugs
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/371303 |
🔴 golden-jobs completed with status |
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.
Nice! ✨
…eact into mp/fix-inactive-actionlist-bugs
Failing integration should be fixed by https://github.com/github/github/pull/371483 |
Nice! let's merge the fix in gh/gh before merging this pr as to not block main 🙏 |
… determining whether to show ActionList.TrailingAction
…contexts (#5866) Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
Note
The fix for SelectPanel will only be available with the
"primer_react_select_panel_with_modern_action_list"
feature flag. The deprecated ActionList did not support inactive items.Helpful context
Slack thread that kicked this off
A11y Office Hours recording and recap
A11y Office Hours notes
Demo
Before
Kapture.2025-04-02.at.19.00.22.mp4
After
Kapture.2025-04-02.at.18.49.23.mp4
Changelog
New
Changed
ActionList
wrapped in anActionMenu
orSelectPanel
?”) to decide between a tooltip or inline inactive message, we now check therole
onActionList
.role
is"menu"
or"listbox"
, the inactive message is rendered inline (e.g. inActionMenu
orSelectPanel
)role
-based logic fixes inactive NavList item behavior:role
-based logic fixes inactive SelectPanel item behavior:SelectPanel
items when using the modernActionList
. The deprecatedActionList
does not support inactive items.role
-based logic to determine whetherActionList.TrailingAction
is allowed inside an itemaria-describedby
andaria-labelledby
associations for tooltip buttons on inactive items:aria-describedby
→ item label ("Item 1"),aria-labelledby
→ inactive message ("Unavailable due to an outage")aria-labelledby
→ item label,aria-describedby
→ inactive messageRemoved
Rollout strategy
Testing & Reviewing
Merge checklist