From d33e58a05bede8c4d8e601cedbb91a40d39a45f2 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Wed, 22 May 2024 08:44:04 +0200 Subject: [PATCH 1/2] Restructure heading tree structure This is important for accessibility and screen readers. Following the changes introduced in https://github.com/danskernesdigitalebibliotek/dpl-cms/pull/1154/ --- src/stories/Library/footer-accordions/FooterAccordion.tsx | 4 ++-- src/stories/Library/footer-colums/FooterColumn.tsx | 2 +- src/stories/Library/nav-spot/NavSpot.tsx | 2 +- src/stories/Library/nav-teaser/NavTeaser.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/stories/Library/footer-accordions/FooterAccordion.tsx b/src/stories/Library/footer-accordions/FooterAccordion.tsx index 3e74eba21..d76a5c5b0 100644 --- a/src/stories/Library/footer-accordions/FooterAccordion.tsx +++ b/src/stories/Library/footer-accordions/FooterAccordion.tsx @@ -16,7 +16,7 @@ const FooterAccordion: FC = ({ return ( <> -

+

-

+
= ({ title, content }) => { return ( <> -

{title}

+

{title}

= ({
-

{title}

+

{title}

{subtitle ?

{subtitle}

: ""} diff --git a/src/stories/Library/nav-teaser/NavTeaser.tsx b/src/stories/Library/nav-teaser/NavTeaser.tsx index a2c9defeb..1824d9e62 100644 --- a/src/stories/Library/nav-teaser/NavTeaser.tsx +++ b/src/stories/Library/nav-teaser/NavTeaser.tsx @@ -10,7 +10,7 @@ const NavTeaser: FC = ({ title, subtitle }) => { return (