-
Notifications
You must be signed in to change notification settings - Fork 183
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 content outside ARIA landmark #140
Comments
hi @peterh-capella thanks for raising the issue. This version of Modaal is no longer being worked, with a new non-jquery dependant version being planned. Rather than you invest time in applying it to this version, if you're able to share the steps you've used to identify and test the issue, we can apply that approach to the new version when it's further along |
The issue came up for me due to my firm's use of the Siteimprove service (https://siteimprove.com/). Their recent updates to their testing engine flagged many instances of a best-practice issue, "Text not included in an ARIA landmark." This would show up for applications that included an introductory modal describing the academic activity the user was starting. We have standard pattern of opening that modal on page load which then injects the HTML structure at the end of the My plan to remediate this was to look into where the script built the Another option would be to use a I hope that's useful. If I can assist with the new version let me know. |
The default behavior of injecting the
div.modaal-wrapper
at the end of thebody
has the side-effect of removing the content therein from any ARIA landmarks defined on the page. This limits the ability of assistive technologies to navigate to the content and also causes failures in automated accessibility checks.I suggest checking for the presence of one of the tags with an implicit ARIA landmark role as parent of the modal content and inserting the
div.modaal-wrapper
element at the end of that element, falling back to current behavior if such an element is not present.I'm willing to work on developing this update if it seems valuable to the project.
The text was updated successfully, but these errors were encountered: