Skip to content

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

Open
inscomssb wants to merge 1 commit into
codegouvfr:mainfrom
inscomssb:fix/footer-category-name-reactnode
Open

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

Conversation

@inscomssb
Copy link
Copy Markdown

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

1 participant