-
Notifications
You must be signed in to change notification settings - Fork 164
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(ui-kit): dialog closing and a11y #346
Conversation
/cc @arashsheyda I guess it's related to your PR? |
This PR solving another issue I think, but I guess we can fix that issue in here too. the problem in other PR is described like:
example videobandicam.2023-07-27.20-42-25-281.mp4I though a solution can be by adding a class that Dialog has(e.g. or what about using the dialog html element and passing that to ignore list ? |
Is there a branch I can use to test it like that video? Could do ignore |
There's no branch but I test it locally and it worked perfect, thanks. |
You mean a11y right? |
Yes.. too much time working with i18n on the sitemap module 🤦♂️ |
Seems like the introduction of the focus trap on NDialog stopped the dialog closing when clicking on the backdrop.
Peek.2023-07-27.14-46.webm
(I'm clicking on the backdrop in the video)
To fix it we implement the same logic that the DrawerRight component uses. We also fix some i18n issues and have better styling for dark mode.