From b4e15b49a9f2df2986aeca80a6ebf94e1461b841 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 19 Oct 2023 17:13:00 +0100 Subject: [PATCH] Lint and update fixtures --- src/nationalarchives/components/footer/fixtures.json | 2 +- src/nationalarchives/components/hero/fixtures.json | 12 ++++++------ .../stories/utilities/typography/headings.stories.js | 4 +++- src/nationalarchives/utilities/_typography.scss | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/nationalarchives/components/footer/fixtures.json b/src/nationalarchives/components/footer/fixtures.json index 57eccf24..d5b57c27 100644 --- a/src/nationalarchives/components/footer/fixtures.json +++ b/src/nationalarchives/components/footer/fixtures.json @@ -4,7 +4,7 @@ { "name": "minimal", "options": {}, - "html": "", + "html": "", "hidden": false } ] diff --git a/src/nationalarchives/components/hero/fixtures.json b/src/nationalarchives/components/hero/fixtures.json index 2ebd3258..e4cf768e 100644 --- a/src/nationalarchives/components/hero/fixtures.json +++ b/src/nationalarchives/components/hero/fixtures.json @@ -10,7 +10,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "
\"The

Title

", + "html": "
\"The

Title

", "hidden": false }, { @@ -23,7 +23,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "
\"The

Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

", + "html": "
\"The

Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

", "hidden": false }, { @@ -36,7 +36,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "
\"The

Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

", + "html": "
\"The

Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

", "hidden": false }, { @@ -49,7 +49,7 @@ "imageHeight": 333, "imageCaption": "An interesting photo by a famous photographer ©2023" }, - "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", + "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", "hidden": false }, { @@ -75,7 +75,7 @@ "imageCaption": "An interesting photo by a famous photographer ©2023", "classes": "hero__test-class" }, - "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", + "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", "hidden": false }, { @@ -91,7 +91,7 @@ "data-testattribute": "foobar" } }, - "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", + "html": "
Image caption

An interesting photo by a famous photographer ©2023

\"The

Title

", "hidden": false } ] diff --git a/src/nationalarchives/stories/utilities/typography/headings.stories.js b/src/nationalarchives/stories/utilities/typography/headings.stories.js index 1234e4d6..a69c6634 100644 --- a/src/nationalarchives/stories/utilities/typography/headings.stories.js +++ b/src/nationalarchives/stories/utilities/typography/headings.stories.js @@ -8,7 +8,9 @@ export default { argTypes, }; -const HeadingTemplate = ({ params }, level) => ` +const HeadingTemplate = ({ params }, level) => ` ${params.text} (${params.size.toUpperCase()}) `; diff --git a/src/nationalarchives/utilities/_typography.scss b/src/nationalarchives/utilities/_typography.scss index 70f14666..b319a0a1 100644 --- a/src/nationalarchives/utilities/_typography.scss +++ b/src/nationalarchives/utilities/_typography.scss @@ -366,7 +366,7 @@ small { %heading-xl { @extend %heading; - + @include typography.heading-font; @include typography.relative-font-size(64); line-height: 1.2;