Skip to content
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 accessibility on modal #38

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Fix accessibility on modal #38

merged 2 commits into from
Feb 22, 2022

Conversation

Que-tin
Copy link
Contributor

@Que-tin Que-tin commented Feb 17, 2022

Currently the closing button doesn't have a label on it that can be accessed by screen readers, also the overlay shouldn't be focusable as it just doubles functionality of the close button that comes beforehand. Therefore that it has tabindex=-1 it also doesn't need the aria-label.

Currently the closing options dont have a label to it, also the overlay shouldn't be focusable as it just doubles the close button that comes beforehand. Therefor it also doesn't need the aria-label
@netlify
Copy link

netlify bot commented Feb 17, 2022

✔️ Deploy Preview for css-ui ready!

🔨 Explore the source changes: 94c142e

🔍 Inspect the deploy log: https://app.netlify.com/sites/css-ui/deploys/620f9b7121a0b00008e8786d

😎 Browse the preview: https://deploy-preview-38--css-ui.netlify.app/docs/components/modal

Copy link
Owner

@zetareticoli zetareticoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Que-tin, thanks for your contribution. 👍

Please, could you update the modal template in the docs/ folder too?

@Que-tin
Copy link
Contributor Author

Que-tin commented Feb 18, 2022

Will do 👍🏻😊

Add the changes to the doc
@Que-tin
Copy link
Contributor Author

Que-tin commented Feb 18, 2022

Hi @zetareticoli done! 😊

@zetareticoli
Copy link
Owner

I'll merge it on monday because it's a hotfix release. 👍

@zetareticoli zetareticoli changed the base branch from main to dev February 22, 2022 15:06
@zetareticoli zetareticoli merged commit 4eaeba5 into zetareticoli:dev Feb 22, 2022
@zetareticoli zetareticoli mentioned this pull request Feb 22, 2022
zetareticoli added a commit that referenced this pull request Feb 22, 2022
* Fix accessibility on modal (#38)

* Add changes to doc

* Removed overflow hidden. Fixes #37

* Updated CHANGELOG

* Generated new lib .zip

Co-authored-by: Quentin Albert <quentin.albert@web.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants