-
Notifications
You must be signed in to change notification settings - Fork 21
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
Modal
: accept role
as a prop
#81
Comments
Apologies, @jquense. I meant to open this one for Sorry! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe
Currently, the role of modals is hard-coded to
dialog
. However, ARIA also describes analertdialog
role, which is perfect for confirmation prompts or alerts that require user interaction.Describe the solution you'd like
The
Modal
component should accept arole
prop. If it's set toalertdialog
, ensure that "keyboard and mouse interactions only operate within the dialog".Describe alternatives you've considered
Passing
role
as a prop toModal
does not work because it's passed to the childdiv
instead.Additional context
https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/
The text was updated successfully, but these errors were encountered: