-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix dialog being omitted in accessability tree #1205
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 381db4a:
|
Gatsby Cloud Build ReportDNB Eufemia Portal 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 11m PerformanceLighthouse report
|
441c633
to
7ce12fc
Compare
This omits the modal root from getting aria-hidden="true" added to it, which removes the modal from the accessibility tree
7ce12fc
to
381db4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the PR 🙏
I fixed the tests and we will take this inn now 👍
# [9.22.0](v9.21.0...v9.22.0) (2022-02-09) ### Bug Fixes * **Avatar:** make the radius 100% round ([06e4133](06e4133)) * avoid Modal (dialog) from being omitted in accessibility tree ([#1205](#1205)) ([1d4d6f1](1d4d6f1)) * fix InputMasked delete key usage ([0e13054](0e13054)), closes [#1113](#1113) * **Icons:** fix svgo config ([e9326ee](e9326ee)) * **Icons:** lower icon size ([5e86696](5e86696)) * **Logo:** center logo in bounding box by using flex ([2a9eed7](2a9eed7)) * **Modal:** ensure IE11 is placing the close button to the right side ([1aab80f](1aab80f)) * **Modal:** make revalidation after Modal close work on IE11 ([c00c489](c00c489)) * **NumberUtils:** enhance missing types ([5e46814](5e46814)) * **NumberUtils:** fix IE11 issue with ([6225b9a](6225b9a)) ### Features * **Tabs:** add no_border prop ([#1279](#1279)) ([47826fd](47826fd)) * update icons: credit_note, deleted_invoice, speedometer, travel ([3b91772](3b91772)) * **Version:** run Eufemia.version in your browser console ([06e8658](06e8658)) * **VisuallyHidden:** Add VisuallyHidden component ([#1246](#1246)) ([48819d4](48819d4))
🎉 This PR is included in version 9.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This omits the modal root from getting
aria-hidden="true" added to it, which
removes the modal from the accessibility tree
Summary
The modal root component got
aria-hidden="true"
added to it when opening the dialog, rendering the content inside not accessible in the accessibility tree.This adds additional ignore of the modal root component in the
aria-hidden
handler logic.Test plan
I added a new test, for checking that a button outside still gets
aria-hidden="true"
, and the modal root no longer get it. However I could not get the test to work, I tried both usingdocument.querySelector
andComp.find
as seen in the tried test. As well as with and without the{attachTo: attachToBody()}
option.I have verified the described effect/change in Storybook, as well as when using it as a component in our application.