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 issues #516

Merged
merged 2 commits into from
Sep 23, 2023
Merged

Fix accessibility issues #516

merged 2 commits into from
Sep 23, 2023

Conversation

tysongach
Copy link
Contributor

The Lookbook UI had a few accessibility issues flagged by axe, an accessibility testing tool:

Problem: Buttons must have discernible text
Element: Button that opens the debug menu in the app header
Ref: https://dequeuniversity.com/rules/axe/4.6/button-name
Solution: Provide a tooltip, which is used as the button’s accessible name

Problem: IDs of active elements must be unique
Element: The two ‘show drawer’ buttons
Ref: https://dequeuniversity.com/rules/axe/4.6/duplicate-id-active
Solution: Give each button a unique ID

Problem: Zooming and scaling must not be disabled
Ref: https://dequeuniversity.com/rules/axe/4.6/meta-viewport
Solution: Remove maximum-scale=1.0 and user-scalable=0 from the viewport metadata

The Lookbook UI had a few accessibility issues flagged by [axe], an
accessibility testing tool:

Problem: Buttons must have discernible text
Element: Button that opens the debug menu in the app header
Ref: https://dequeuniversity.com/rules/axe/4.6/button-name
Solution: Provide a tooltip, which is used as the button’s accessible
name

Problem: IDs of active elements must be unique
Element: The two ‘show drawer’ buttons
Ref: https://dequeuniversity.com/rules/axe/4.6/duplicate-id-active
Solution: Give each button a unique ID

Problem: Zooming and scaling must not be disabled
Ref: https://dequeuniversity.com/rules/axe/4.6/meta-viewport
Solution: Remove `maximum-scale=1.0` and `user-scalable=0` from the
`viewport` metadata

[axe]: https://www.deque.com/axe
@netlify
Copy link

netlify bot commented Aug 25, 2023

Deploy Preview for lookbook-docs canceled.

Name Link
🔨 Latest commit f884bb5
🔍 Latest deploy log https://app.netlify.com/sites/lookbook-docs/deploys/64ef4d3b2c740d0008fc4f3c

@allmarkedup
Copy link
Collaborator

Hey @tysongach, many thanks for this and so sorry for the embarassingly slow reply. I know Lookbook's accessibility is pretty poor in places so I really appreciate PRs like this one.

I'll merge it in now and the changes will be included in the next release. Thanks again!

@allmarkedup allmarkedup merged commit 94d2f7d into lookbook-hq:main Sep 23, 2023
@tysongach tysongach deleted the a11y branch September 25, 2023 13:55
@tysongach
Copy link
Contributor Author

No problem at all, @allmarkedup! Thanks for merging.

I’m happy to help with a11y issues - feel free to open an Issue with any that you’re aware of, ping me, and I’ll take a look.

Thanks for all your work on this project!

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