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.”

Service and brand tag and brand operator

Service and brand tag

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://ants.gouv.fr/

https://meteofrance.com

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.

Comments

dim-dev created an issue. See original summary.

s3b0un3t’s picture

Assigned: Unassigned » s3b0un3t

Hello @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. ;-)

  • b5fa748a committed on 2.x
    fix: #3626768 Probleme implementation components header and logo-...
s3b0un3t’s picture

Assigned: s3b0un3t » Unassigned
Status: Patch (to be ported) » Fixed

I'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 !

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

s3b0un3t’s picture

Version: 1.6.3 » 2.x-dev

  • f710e2ce committed on 1.6.x
    fix: #3626768 Probleme implementation components header and logo-...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.