-
Notifications
You must be signed in to change notification settings - Fork 207
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
♿️(frontend) Accessibility clean #641
base: main
Are you sure you want to change the base?
Conversation
By following the "Docs - Accessibility" documentation, a background color is applied to the left block.
…cessibility-clean
Merge branch 'main' of https://github.com/suitenumerique/docs into accessibility-clean
Definition of the language in the HTML code dynamically
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.
You have 2 "ghosts" commits.
From main
, you should have:
- 💄(frontend) add missing background
- 🌐(frontend) define html language
src/frontend/apps/impress/src/features/left-panel/components/LeftPanel.tsx
Outdated
Show resolved
Hide resolved
|
||
useEffect(() => { | ||
document.documentElement.lang = i18n.language || 'fr'; |
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.
It should have its own useEffect.
document.documentElement.lang = i18n.language || 'fr'; | |
useEffect(() => { | |
document.documentElement.lang = i18n.language || 'fr'; | |
}, [i18n.language]); |
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.
OK, I'll make this modification.
…eftPanel.tsx Co-authored-by: Anthony LC <[email protected]>
Co-authored-by: Anthony LC <[email protected]>
Modifications made following the feedback.
…ue/docs into accessibility-clean
To highlight the focus on the buttons.
…ue/docs into accessibility-clean ?
- Decorative icons are no longer keyboard-focusable. - Home icons appear with an aria-label. - In the second navigation, hide the icons with aria-hidden="true". - Add a lang="en" attribute to the term 'English' and a lang="de" attribute to 'Deutsch'
Purpose
Following issue 632, code modification to address the reported problems.
#632
Proposal