From 056ed0d5f050158cebad689099214b164539899a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 15 May 2022 19:08:58 +0200 Subject: chore: improve accessibility --- src/components/organisms/layout/footer.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/components/organisms/layout/footer.tsx') diff --git a/src/components/organisms/layout/footer.tsx b/src/components/organisms/layout/footer.tsx index 15bfa24..1426e96 100644 --- a/src/components/organisms/layout/footer.tsx +++ b/src/components/organisms/layout/footer.tsx @@ -4,6 +4,7 @@ import Copyright, { import BackToTop from '@components/molecules/buttons/back-to-top'; import Nav, { type NavItem } from '@components/molecules/nav/nav'; import { FC } from 'react'; +import { useIntl } from 'react-intl'; import styles from './footer.module.scss'; export type FooterProps = { @@ -31,6 +32,13 @@ export type FooterProps = { * Renders a footer with copyright and nav; */ const Footer: FC = ({ className, copyright, navItems, topId }) => { + const intl = useIntl(); + const ariaLabel = intl.formatMessage({ + defaultMessage: 'Footer', + description: 'Footer: an accessible name for footer nav', + id: 'd4N8nD', + }); + return ( -- cgit v1.2.3