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

♿️(frontend) Accessibility clean #641

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

MarineM1
Copy link

@MarineM1 MarineM1 commented Feb 17, 2025

Purpose

Following issue 632, code modification to address the reported problems.
#632

Proposal

  • [] item 1...
  • [] item 2...

By following the "Docs - Accessibility" documentation, a background color is applied to the left block.
Merge branch 'main' of https://github.com/suitenumerique/docs into accessibility-clean
Definition of the language in the HTML code dynamically
@MarineM1 MarineM1 changed the title Accessibility clean ♿️(frontend) Accessibility clean Feb 17, 2025
@MarineM1 MarineM1 marked this pull request as ready for review February 17, 2025 10:25
@MarineM1 MarineM1 self-assigned this Feb 17, 2025
Copy link
Collaborator

@AntoLC AntoLC left a 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


useEffect(() => {
document.documentElement.lang = i18n.language || 'fr';
Copy link
Collaborator

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.

Suggested change
document.documentElement.lang = i18n.language || 'fr';
useEffect(() => {
document.documentElement.lang = i18n.language || 'fr';
}, [i18n.language]);

Copy link
Author

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.

@MarineM1 MarineM1 requested a review from AntoLC February 24, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants