From 0c9435955db43f993f2fa5fb12bd4bab93ed7d92 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 30 Nov 2023 12:42:15 +0000 Subject: [PATCH] Add more fixtures --- .htmlvalidate.json | 1 + .../components/cookie-banner/fixtures.json | 20 +-- .../components/cookie-banner/template.njk | 2 +- .../components/date-search/template.njk | 2 +- .../components/featured-records/fixtures.json | 42 ++++- .../components/filters/filters.scss | 26 ++- .../components/filters/fixtures.json | 49 +++++- .../components/footer/fixtures.json | 148 ++++++++++++++++ .../components/header/fixtures.json | 50 +++++- .../components/header/template.njk | 2 +- .../components/message/fixtures.json | 11 +- .../components/pagination/fixtures.json | 45 ++++- .../components/picture/fixtures.json | 17 +- .../components/search-field/fixtures.json | 41 ++++- .../components/select/fixtures.json | 166 +++++++++++++++++- .../components/select/template.njk | 2 +- .../components/tabs/fixtures.json | 28 ++- .../components/tabs/macro-options.json | 6 - .../components/tabs/tabs.stories.js | 6 +- .../components/tabs/template.njk | 2 +- .../components/text-input/fixtures.json | 82 ++++++++- .../components/text-input/template.njk | 2 +- .../components/textarea/fixtures.json | 82 ++++++++- .../components/textarea/template.njk | 2 +- 24 files changed, 781 insertions(+), 53 deletions(-) diff --git a/.htmlvalidate.json b/.htmlvalidate.json index 77b50c65..abdb6567 100644 --- a/.htmlvalidate.json +++ b/.htmlvalidate.json @@ -5,6 +5,7 @@ "close-order": "error", "form-dup-name": 0, "no-inline-style": 0, + "no-redundant-role": 0, "no-trailing-whitespace": 0, "void-style": 0 } diff --git a/src/nationalarchives/components/cookie-banner/fixtures.json b/src/nationalarchives/components/cookie-banner/fixtures.json index 1d4e7deb..66573bf8 100644 --- a/src/nationalarchives/components/cookie-banner/fixtures.json +++ b/src/nationalarchives/components/cookie-banner/fixtures.json @@ -7,7 +7,7 @@ "serviceName": "My service", "cookiesUrl": "/cookies" }, - "html": "", + "html": "", "hidden": false }, { @@ -17,7 +17,7 @@ "cookiesUrl": "/cookies", "cookiesPreferencesSetKey": "custom" }, - "html": "", + "html": "", "hidden": false }, { @@ -27,7 +27,7 @@ "cookiesUrl": "/cookies", "policies": "custom" }, - "html": "", + "html": "", "hidden": false }, { @@ -37,7 +37,7 @@ "cookiesUrl": "/cookies", "policiesKey": "custom_key" }, - "html": "", + "html": "", "hidden": false }, { @@ -47,7 +47,7 @@ "cookiesUrl": "/cookies", "cookiesDomain": "nationalarchives.gov.uk" }, - "html": "", + "html": "", "hidden": false }, { @@ -57,7 +57,7 @@ "cookiesUrl": "/cookies", "cookiesPath": "/my-service" }, - "html": "", + "html": "", "hidden": false }, { @@ -67,7 +67,7 @@ "cookiesUrl": "/cookies", "preferencesSetKey": "custom_preferences_set_key" }, - "html": "", + "html": "", "hidden": false }, { @@ -77,7 +77,7 @@ "cookiesUrl": "/cookies", "allowInsecure": true }, - "html": "", + "html": "", "hidden": false }, { @@ -87,7 +87,7 @@ "cookiesUrl": "/cookies", "classes": "tna-cookie-banner--fixture" }, - "html": "", + "html": "", "hidden": false }, { @@ -99,7 +99,7 @@ "data-fixturetest": "pass" } }, - "html": "", + "html": "", "hidden": false } ] diff --git a/src/nationalarchives/components/cookie-banner/template.njk b/src/nationalarchives/components/cookie-banner/template.njk index 4bd48697..b0b42618 100644 --- a/src/nationalarchives/components/cookie-banner/template.njk +++ b/src/nationalarchives/components/cookie-banner/template.njk @@ -1,7 +1,7 @@ {% from "nationalarchives/components/button/macro.njk" import tnaButton %} {%- set containerClasses = [params.classes] if params.classes else [] -%} -