Skip to content

feat(Footer): allow ReactNode for categoryName to support lang attribute - #493

Merged
garronej merged 1 commit into
codegouvfr:mainfrom
inscomssb:fix/footer-category-name-reactnode
Aug 3, 2026
Merged

feat(Footer): allow ReactNode for categoryName to support lang attribute#493
garronej merged 1 commit into
codegouvfr:mainfrom
inscomssb:fix/footer-category-name-reactnode

Conversation

@inscomssb

Copy link
Copy Markdown
Contributor

Closes #476

widens the type of FooterProps.LinkList.Column.categoryName from string
to ReactNode, allowing consumers to wrap content with a lang attribute
to signal language changes in the source code, as required by RGAA
criterion 8.7.

the change is fully backwards compatible since string is a valid ReactNode.

a new Storybook story WithLinkListAndLangOnCategoryName demonstrates
the use case.

…te (RGAA 8.7)

Fixes codegouvfr#476 — widens `FooterProps.LinkList.Column.categoryName` from `string`
to `ReactNode` so consumers can wrap content with a `lang` attribute to signal
language changes in the source code, as required by RGAA criterion 8.7.
Change is fully backwards-compatible since `string` is a valid `ReactNode`.
@garronej

garronej commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

@garronej
garronej merged commit 377b6aa into codegouvfr:main Aug 3, 2026
@inscomssb
inscomssb deleted the fix/footer-category-name-reactnode branch August 3, 2026 13:50
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.

[Accessibilité] - RGAA : 8.7 - ajout de l'attribut lang

2 participants