diff --git a/src/Footer.tsx b/src/Footer.tsx index b145130c2..09e360d12 100644 --- a/src/Footer.tsx +++ b/src/Footer.tsx @@ -73,6 +73,10 @@ export type FooterProps = { >; style?: CSSProperties; linkList?: FooterProps.LinkList.List; + linkHeadingWrapper?: { + level: 2 | 3 | 4 | 5 | 6; + useAriaLevel?: boolean; + }; domains?: string[]; }; @@ -166,6 +170,9 @@ export const Footer = memo( homeLinkProps: homeLinkProps_prop, style, linkList, + linkHeadingWrapper = { + level: 3 + }, domains = ["info.gouv.fr", "service-public.fr", "legifrance.gouv.fr", "data.gouv.fr"], ...rest } = props; @@ -200,6 +207,8 @@ export const Footer = memo( const { main: mainPartnersLogo, sub: subPartnersLogos = [] } = partnersLogos ?? {}; + const LinkHeadingLevel: "h2" | "h3" | "h4" | "h5" | "h6" = `h${linkHeadingWrapper.level}`; + return (