From d7e6ffa0859f249d2c5ffc9b49adb45755700e1b Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 5 Sep 2024 10:40:56 +0100 Subject: [PATCH] Update tabs HTML to valid role structure --- src/nationalarchives/components/tabs/fixtures.json | 2 +- src/nationalarchives/components/tabs/tabs.scss | 3 --- src/nationalarchives/components/tabs/template.njk | 6 ++---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/nationalarchives/components/tabs/fixtures.json b/src/nationalarchives/components/tabs/fixtures.json index c65d3a9a..0400774d 100644 --- a/src/nationalarchives/components/tabs/fixtures.json +++ b/src/nationalarchives/components/tabs/fixtures.json @@ -23,7 +23,7 @@ } ] }, - "html": "

Alpha section

Lorem ipsum

Beta section

Lorem ipsum

Gamma section

Lorem ipsum

" + "html": "

Alpha section

Lorem ipsum

Beta section

Lorem ipsum

Gamma section

Lorem ipsum

" } ] } diff --git a/src/nationalarchives/components/tabs/tabs.scss b/src/nationalarchives/components/tabs/tabs.scss index 6d9ba525..bc5517a5 100644 --- a/src/nationalarchives/components/tabs/tabs.scss +++ b/src/nationalarchives/components/tabs/tabs.scss @@ -28,9 +28,6 @@ gap: spacing.space(0.25); } - &__list-item { - } - &__button { padding: borders.$thick-border-width 0; diff --git a/src/nationalarchives/components/tabs/template.njk b/src/nationalarchives/components/tabs/template.njk index 3296edd8..39d8e19d 100644 --- a/src/nationalarchives/components/tabs/template.njk +++ b/src/nationalarchives/components/tabs/template.njk @@ -4,17 +4,15 @@ {%- endif -%} {%- set classes = containerClasses | join(' ') -%}
- +
{%- for item in params.items %}