Problem/Motivation
https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/en-...
1. RGAA Issue with the Header Component
The Header component currently contains two links, which can cause confusion for users navigating with a screen reader. Additionally, the current implementation does not match the one shown in the screenshot.
Looking at the implementation of the Header component demo, we see that only one link is present in the component, depending on the following scenarios:
When `hasBrandOperator` is `true` and `brandService` is not empty:
the link is positioned on the logo.
When `hasBrandOperator` is `false` and `brandService` is not empty:
the link is positioned on “Service.”


2. Customizing the alternative text for the operator logo
It is necessary to be able to modify the alternative text for the operator logo, as is done on various government websites.
This is why the following variable is provided:
logo_operator_text
and not just:
logo_text
Examples of relevant websites:
https://www.impots.gouv.fr/accueil
3. Adding `aria-current=“page”` to the home page
Following Access42’s RGAA feedback, and based solely on RGAA recommendations, the aria-current=“page” attribute was added when the user is on the home page.
Reference:
https://a11y-guidelines.orange.com/fr/articles/utilisation-de-l-attribut...
Proposed resolution
This patch fixes the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| header_dsfr.patch | 3.31 KB | dim-dev |
Comments
Comment #2
s3b0un3tHello @dim-dev,
Thank you for your feedback and the proposed patch.
We will evaluate it as soon as possible to address the accessibility issue you reported and will generate a corrective release shortly.
Please feel free to create a Merge Request; that is the new procedure that has replaced the use of patches.
Otherwise, no worries—we'll take care of it. ;-)
Comment #4
s3b0un3tI've tested your changes,
That is indeed the right approach.
I committed and pushed the changes on the 1.6.x and the 2.x branches.
Thanks !
Comment #6
s3b0un3t