Skip to content
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 back to AnchoredOverlay #4456

Merged
merged 10 commits into from
Jun 6, 2024

Conversation

TylerJDev
Copy link
Contributor

@TylerJDev TylerJDev commented Apr 2, 2024

Will resolve: https://github.com/github/accessibility-audits/issues/6932

We have an open accessibility issue related to how we handle aria-expanded within AnchoredOverlay. We did not apply aria-expanded when a menu was open since it was redundant, and it was very unlikely that there'd be navigation outside of the menu before it was closed. We've received feedback that this may cause an unintended effect for users using specific devices/AT that makes it difficult to leave the menu.

Changelog

Changed

  • Adds full aria-expanded state to AnchoredOverlay.

Rollout strategy

Integration test PR: https://github.com/github/github/pull/323711. There are some flakey tests that are failing which are not caused by this PR. The changes required for this PR are: https://github.com/github/github/pull/323711/commits/dd6a1dee058ee4659bb1ed36ac50e5356b3de832

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Copy link

changeset-bot bot commented Apr 2, 2024

🦋 Changeset detected

Latest commit: 4b4e4ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

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

Copy link
Contributor

github-actions bot commented Apr 2, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.6 KB (+0.08% 🔺)
packages/react/dist/browser.umd.js 88.88 KB (+0.05% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-4456 April 2, 2024 15:15 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-4456 May 6, 2024 14:01 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-4456 May 6, 2024 20:26 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-4456 May 7, 2024 17:35 Inactive
@TylerJDev TylerJDev marked this pull request as ready for review May 7, 2024 17:45
@TylerJDev TylerJDev requested a review from a team as a code owner May 7, 2024 17:45
@TylerJDev TylerJDev requested a review from mperrotti May 7, 2024 17:45
@lindseywild
Copy link
Contributor

@TylerJDev Hi! Do you have an idea of when this will be merged? 🙏🏻

@TylerJDev
Copy link
Contributor Author

@lindseywild, just needs to get reviewed now! I redid my integration test PR, and it looks good (outside of flakey tests). Requires some changes in GH for tests: https://github.com/github/github/pull/323711#issuecomment-2098990100.

cc: @primer/engineer-reviewers for a review 👀

@lindseywild
Copy link
Contributor

@primer/engineer-reviewers Can someone please review this when you get a chance? Thanks!

@TylerJDev TylerJDev added this pull request to the merge queue Jun 6, 2024
Merged via the queue into main with commit 65f2cd1 Jun 6, 2024
30 checks passed
@TylerJDev TylerJDev deleted the add-aria-expanded-state-take-two branch June 6, 2024 13:38
@primer primer bot mentioned this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants