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

feat: support aria-labelledby and aria-describedby for dialog in Panel #425

Merged

Conversation

kapiljaveri
Copy link
Contributor

The DrawerPanel has a dialog role which should support aria-labelledby and aria-describedby attributes.

The DrawerPanel has a dialog role which should support aria-labelledby and aria-describedby attributes.
@vercel
Copy link

vercel bot commented Aug 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 5:34pm

@kapiljaveri
Copy link
Contributor Author

@zombieJ if you can take a look when you get the chance :)

@afc163
Copy link
Member

afc163 commented Jan 4, 2024

Conflicting

@kapiljaveri
Copy link
Contributor Author

@afc163, all resolved.

src/DrawerPanel.tsx Outdated Show resolved Hide resolved
@afc163
Copy link
Member

afc163 commented Feb 6, 2024

We should change this line.

- {...pickAttrs(props, { data: true })}
+ {...pickAttrs(props, { data: true, aria: true })}

@kapiljaveri
Copy link
Contributor Author

@afc163, won't that apply it to the container div instead of the Panel having the div with the role=dialog? The goal was to make the the dialog queryable via the attributes.

But I could definitely leverage that instead of my custom function.

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4629910) 100.00% compared to head (69607ed) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #425   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          148       148           
  Branches        53        53           
=========================================
  Hits           148       148           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@afc163 afc163 merged commit dddc45c into react-component:master Feb 7, 2024
9 checks passed
@afc163
Copy link
Member

afc163 commented Feb 7, 2024

@kapiljaveri You are right.

@kapiljaveri
Copy link
Contributor Author

Awesome, thanks for the review!

@kapiljaveri kapiljaveri deleted the feat-add-aria-support-for-dialog branch February 7, 2024 04:04
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