-
Notifications
You must be signed in to change notification settings - Fork 1
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 should be contained in a landmark #61
Comments
@susannah-rogers This is now on Netlify ready for testing. |
@mjbp I can see the landmark has been added, but NVDA isn't picking it up... |
@susannah-rogers @sarah-storm updated this one to add an aria-labelledby to the landmark which helps NVDA to identify it. Sarah noted: On Netlify for you to test at your convenience. |
@sarah-storm The landmark on https://storm-ui-patterns.netlify.app/example/modal-confirmation/ is now showing as 'Are you sure?' in NVDA rather than 'region'. This means that it reads 'are you sure' twice - full text below: |
Closing this ticket as complete. Looking at the W3c example of role="dialog" they are also re-using a header as the aria-labelledby marker, therefore I think this is acceptable to do. https://www.w3.org/WAI/GL/wiki/Using_the_region_role_to_identify_a_region_of_the_page |
The modal component used for modal confirmation and modal search patterns moves the dialog markup in the source (this is necessary to prevent tab/swiping out of the modal), this means that the dialogs are no longer contained in a landmark.
I suggest we
The text was updated successfully, but these errors were encountered: