-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: support aria-labelledby and aria-describedby for dialog in Panel #425
Conversation
The DrawerPanel has a dialog role which should support aria-labelledby and aria-describedby attributes.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@zombieJ if you can take a look when you get the chance :) |
Conflicting |
@afc163, all resolved. |
We should change this line. - {...pickAttrs(props, { data: true })}
+ {...pickAttrs(props, { data: true, aria: true })} |
@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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
@kapiljaveri You are right. |
Awesome, thanks for the review! |
The DrawerPanel has a dialog role which should support aria-labelledby and aria-describedby attributes.