-
Notifications
You must be signed in to change notification settings - Fork 536
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
[UnderlineNav2]: Always show at least 2 items in the overflow menu (A11y remediations) #2471
[UnderlineNav2]: Always show at least 2 items in the overflow menu (A11y remediations) #2471
Conversation
🦋 Changeset detectedLatest commit: e139a04 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 |
size-limit report 📦
|
👋🏼 @danielguillan Displaying at least two items in the |
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.
I'm less versed in React than I care to admit, but I'm approving on this is overall desirable behavior from an assistive technology perspective.
ef2cb54
to
2b1a8d2
Compare
98465b9
to
e139a04
Compare
@danielguillan I merged this PR into the feature branch. You can review the implementation including the rest of the a11y sign-off feedback in this PR |
…11y remediations) (#2471) * Display at least two items in the menu * add changeset
* Disclosure pattern implementation * use token name for colours instead of accessing them from theme Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com> * code review feedback <3 * [UnderlineNav2]: Always show at least 2 items in the overflow menu (A11y remediations) (#2471) * Display at least two items in the menu * add changeset * [UnderlineNav2]: Add visually hidden heading where `aria-label` is present (#2470) * Add visually hidden heading * add changeset and a test * append 'navigation' to the aria-label string * use prop for 'as' * add changeset Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Following up the accessibility sign-off review feedback (ref: comment), we need to make sure to have at least two items in the
More
menu when there is overflow. See @ericwbailey 's comment below for reasoning behindStorybook test link: https://primer-9af4b5b990-13348165.drafts.github.io/storybook/?path=/story/components-underlinenav--default-nav
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.