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

AnchoredOverlay: Add aria-expanded to anchor #1758

Merged
merged 4 commits into from
Jan 5, 2022

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Dec 22, 2021

Updated story + docs for controlled anchor in ActionMenu2

Screenshots

Screen.Recording.2021-12-22.at.3.28.53.PM.mov

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

@siddharthkp siddharthkp requested review from a team and colebemis December 22, 2021 14:32
@changeset-bot
Copy link

changeset-bot bot commented Dec 22, 2021

🦋 Changeset detected

Latest commit: f562ed9

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

@siddharthkp siddharthkp requested review from rezrah and removed request for colebemis December 22, 2021 14:32
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2021

size-limit report 📦

Path Size
dist/browser.esm.js 58.91 KB (+0.01% 🔺)
dist/browser.umd.js 59.24 KB (+0.01% 🔺)

@@ -193,6 +194,7 @@ exports[`AnchoredOverlay should render consistently when open 1`] = `
font-family="normal"
>
<button
aria-expanded="true"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wierd that this is a string though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah!

the types are accepts both, so that's nice

'aria-expanded'?: boolean | 'false' | 'true'; ref: @types/react

@siddharthkp siddharthkp merged commit b604403 into main Jan 5, 2022
@siddharthkp siddharthkp deleted the siddharth/actionmenu2-aria-expanded branch January 5, 2022 10:33
@primer-css primer-css mentioned this pull request Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants