diff --git a/CHANGELOG.md b/CHANGELOG.md index 8085461a..88e74fc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Error summary component +- Allow structured data in breadcrumbs with `structuredData` ### Changed ### Deprecated diff --git a/src/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js b/src/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js index aced72d3..20b696ac 100644 --- a/src/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +++ b/src/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js @@ -6,6 +6,7 @@ import { customViewports } from "../../../../.storybook/viewports"; const argTypes = { items: { control: "object" }, noCollapse: { control: "boolean" }, + structuredData: { control: "boolean" }, classes: { control: "text" }, attributes: { control: "object" }, }; @@ -21,11 +22,12 @@ export default { argTypes, }; -const Template = ({ items, noCollapse, classes, attributes }) => +const Template = ({ items, noCollapse, structuredData, classes, attributes }) => Breadcrumbs({ params: { items, noCollapse, + structuredData, classes, attributes, }, diff --git a/src/nationalarchives/components/breadcrumbs/fixtures.json b/src/nationalarchives/components/breadcrumbs/fixtures.json index f459a751..19744e4b 100644 --- a/src/nationalarchives/components/breadcrumbs/fixtures.json +++ b/src/nationalarchives/components/breadcrumbs/fixtures.json @@ -19,8 +19,7 @@ } ] }, - "html": "AlphaBetaGamma", - "hidden": false + "html": "AlphaBetaGamma" }, { "name": "non-collapsing", @@ -38,11 +37,75 @@ "text": "Gamma", "href": "#/gamma" } - ] + ], + "noCollapse": true + }, + "html": "AlphaBetaGamma" + }, + { + "name": "Structured data", + "options": { + "items": [ + { + "text": "Alpha", + "href": "#/alpha" + }, + { + "text": "Beta", + "href": "#/beta" + }, + { + "text": "Gamma", + "href": "#/gamma" + } + ], + "structuredData": true + }, + "html": "AlphaBetaGamma" + }, + { + "name": "with classes", + "options": { + "items": [ + { + "text": "Alpha", + "href": "#/alpha" + }, + { + "text": "Beta", + "href": "#/beta" + }, + { + "text": "Gamma", + "href": "#/gamma" + } + ], + "classes": "tna-breadcrumbs--test" + }, + "html": "AlphaBetaGamma" + }, + { + "name": "with attributes", + "options": { + "items": [ + { + "text": "Alpha", + "href": "#/alpha" + }, + { + "text": "Beta", + "href": "#/beta" + }, + { + "text": "Gamma", + "href": "#/gamma" + } + ], + "attributes": { + "data-testattribute": "foobar" + } }, - "noCollapse": true, - "html": "AlphaBetaGamma", - "hidden": false + "html": "AlphaBetaGamma" } ] } diff --git a/src/nationalarchives/components/breadcrumbs/macro-options.json b/src/nationalarchives/components/breadcrumbs/macro-options.json index 14cff604..67473aa9 100644 --- a/src/nationalarchives/components/breadcrumbs/macro-options.json +++ b/src/nationalarchives/components/breadcrumbs/macro-options.json @@ -3,33 +3,39 @@ "name": "items", "type": "array", "required": true, - "description": "", + "description": "The items within breadcrumbs.", "params": [ { "name": "text", "type": "string", "required": true, - "description": "" + "description": "Text to use within the breadcrumbs item." }, { "name": "href", "type": "string", "required": true, - "description": "" + "description": "Link for the breadcrumbs item." }, { "name": "title", "type": "string", "required": false, - "description": "" + "description": "Optional title for the breadcrumb item used in the title attribute." } ] }, { "name": "noCollapse", - "type": "string", + "type": "boolean", + "required": false, + "description": "When true, the breadcrumbs will not collapse to the first and last item only on smaller devices." + }, + { + "name": "structuredData", + "type": "boolean", "required": false, - "description": "" + "description": "When true, structured data markup is added to the breadcrumbs." }, { "name": "classes", diff --git a/src/nationalarchives/components/breadcrumbs/template.njk b/src/nationalarchives/components/breadcrumbs/template.njk index 9c39226b..6d4eb7fb 100644 --- a/src/nationalarchives/components/breadcrumbs/template.njk +++ b/src/nationalarchives/components/breadcrumbs/template.njk @@ -2,13 +2,20 @@ {%- if params.noCollapse -%} {%- set containerClasses = containerClasses.concat('tna-breadcrumbs--no-collapse') -%} {%- endif -%} - - + + {%- for item in params.items -%} - - + + + {%- if params.structuredData %} + {{ item.text }} + {%- else %} {{ item.text }} + {%- endif %} + {%- if params.structuredData -%} + + {%- endif %} {%- endfor -%} diff --git a/src/nationalarchives/components/button/fixtures.json b/src/nationalarchives/components/button/fixtures.json index 2e91ba7b..ef8aae37 100644 --- a/src/nationalarchives/components/button/fixtures.json +++ b/src/nationalarchives/components/button/fixtures.json @@ -7,8 +7,7 @@ "text": "Log in", "href": "#" }, - "html": "Log in", - "hidden": false + "html": "Log in" }, { "name": "with title", @@ -17,8 +16,7 @@ "href": "#", "title": "Log in to the service" }, - "html": "Log in", - "hidden": false + "html": "Log in" }, { "name": "accent", @@ -27,8 +25,7 @@ "href": "#", "accent": true }, - "html": "Log in", - "hidden": false + "html": "Log in" }, { "name": "with classes", @@ -37,8 +34,7 @@ "href": "#", "classes": "button__test-class" }, - "html": "Log in", - "hidden": false + "html": "Log in" }, { "name": "with attributes", @@ -49,8 +45,7 @@ "data-testattribute": "foobar" } }, - "html": "Log in", - "hidden": false + "html": "Log in" } ] } diff --git a/src/nationalarchives/components/button/template.njk b/src/nationalarchives/components/button/template.njk index 496243b5..0eb1af16 100644 --- a/src/nationalarchives/components/button/template.njk +++ b/src/nationalarchives/components/button/template.njk @@ -18,8 +18,8 @@ {%- set buttonClasses = buttonClasses.concat('tna-button--icon-right') -%} {%- endif -%} <{{ 'button' if params.buttonElement else 'a' }}{%- if not params.buttonElement %} href="{{ params.href }}"{%- endif %} class="tna-button {{ buttonClasses | join(' ') }}"{%- if params.buttonElement %} type="{{ params.buttonType or 'button' }}"{% endif -%}{%- if params.title %} title="{{ params.title }}"{% endif %}{% for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}> - {%- if params.icon -%} + {% if params.icon -%} {% endif -%} - {{ params.text -}} + {{ params.text }} {{ 'button' if params.buttonElement else 'a' }}> \ No newline at end of file diff --git a/src/nationalarchives/components/card/fixtures.json b/src/nationalarchives/components/card/fixtures.json index 34fab283..4269f8e4 100644 --- a/src/nationalarchives/components/card/fixtures.json +++ b/src/nationalarchives/components/card/fixtures.json @@ -8,8 +8,7 @@ "headingLevel": 3, "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with supertitle", @@ -19,8 +18,7 @@ "headingLevel": 3, "body": "Card body" }, - "html": "Card supertitleCard titleCard body", - "hidden": false + "html": "Card supertitleCard titleCard body" }, { "name": "heading size", @@ -30,8 +28,7 @@ "headingSize": "xl", "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "heading level", @@ -40,8 +37,7 @@ "headingLevel": 1, "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with link", @@ -51,8 +47,7 @@ "href": "#", "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with meta", @@ -75,8 +70,7 @@ ], "body": "Card body" }, - "html": "Card title24th September 2023From £16OnlineCard body", - "hidden": false + "html": "Card title24th September 2023From £16OnlineCard body" }, { "name": "with text", @@ -85,8 +79,7 @@ "headingLevel": 3, "text": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with image", @@ -99,8 +92,7 @@ "imageHeight": 360, "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with image and alternative sources", @@ -119,8 +111,7 @@ ], "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with link and image", @@ -134,8 +125,7 @@ "href": "#", "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with actions", @@ -151,8 +141,7 @@ } ] }, - "html": "Card titleCard bodyCard action", - "hidden": false + "html": "Card titleCard bodyCard action" }, { "name": "with a label", @@ -162,8 +151,7 @@ "label": "New", "body": "Card body" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with a contrast style", @@ -173,8 +161,7 @@ "body": "Card body", "style": "contrast" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with a accent style", @@ -184,8 +171,7 @@ "body": "Card body", "style": "accent" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with an unknown style", @@ -195,8 +181,7 @@ "body": "Card body", "style": "foobar" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with classes", @@ -206,8 +191,7 @@ "body": "Card body", "classes": "card__test-class" }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" }, { "name": "with attributes", @@ -219,8 +203,7 @@ "data-testattribute": "foobar" } }, - "html": "Card titleCard body", - "hidden": false + "html": "Card titleCard body" } ] } diff --git a/src/nationalarchives/components/checkboxes/fixtures.json b/src/nationalarchives/components/checkboxes/fixtures.json index 0eb83ef7..9932f213 100644 --- a/src/nationalarchives/components/checkboxes/fixtures.json +++ b/src/nationalarchives/components/checkboxes/fixtures.json @@ -24,8 +24,7 @@ } ] }, - "html": "CategoriesAlphaBetaGamma", - "hidden": false + "html": "CategoriesAlphaBetaGamma" }, { "name": "small checkboxes", @@ -79,8 +78,7 @@ ], "small": true }, - "html": "CategoriesAdmiralty, Navy, Royal Marines, and CoastguardAir Ministry and Royal Air Force recordsBoard of Trade and successorsChancery, the Wardrobe, Royal Household, Exchequer and various commissionsColonial Office, Commonwealth and Foreign and Commonwealth OfficesExchequer, Office of First Fruits and Tenths, and the Court of AugmentationsForeign OfficeHome OfficePrerogative Court of CanterburyWar Office, Armed Forces, Judge Advocate General, and related bodies", - "hidden": false + "html": "CategoriesAdmiralty, Navy, Royal Marines, and CoastguardAir Ministry and Royal Air Force recordsBoard of Trade and successorsChancery, the Wardrobe, Royal Household, Exchequer and various commissionsColonial Office, Commonwealth and Foreign and Commonwealth OfficesExchequer, Office of First Fruits and Tenths, and the Court of AugmentationsForeign OfficeHome OfficePrerogative Court of CanterburyWar Office, Armed Forces, Judge Advocate General, and related bodies" }, { "name": "checkboxes with a preselected value", @@ -106,8 +104,7 @@ } ] }, - "html": "CategoriesAlphaBetaGamma", - "hidden": false + "html": "CategoriesAlphaBetaGamma" }, { "name": "checkboxes with a hint", @@ -133,8 +130,7 @@ } ] }, - "html": "CategoriesSelect all that apply.AlphaBetaGamma", - "hidden": false + "html": "CategoriesSelect all that apply.AlphaBetaGamma" }, { "name": "checkboxes with an error", @@ -162,8 +158,7 @@ } ] }, - "html": "CategoriesError: You must select a categoryAlphaBetaGamma", - "hidden": false + "html": "CategoriesError: You must select a categoryAlphaBetaGamma" }, { "name": "inline checkboxes", @@ -189,8 +184,7 @@ ], "inline": true }, - "html": "CategoriesAlphaBetaGamma", - "hidden": false + "html": "CategoriesAlphaBetaGamma" } ] } diff --git a/src/nationalarchives/components/compound-filters/fixtures.json b/src/nationalarchives/components/compound-filters/fixtures.json index f9ed88da..99de9fe9 100644 --- a/src/nationalarchives/components/compound-filters/fixtures.json +++ b/src/nationalarchives/components/compound-filters/fixtures.json @@ -39,8 +39,7 @@ } ] }, - "html": "Medieval (974—1485)Remove filterEarly Modern (1485—1714)Remove filterGeorgians (1714—1837)Remove filterVictorians (1837—1901)Remove filterEarly 20th century (1901—1918)Remove filterInterwar (1918—1939)Remove filterSecond World War (1939—1945)Remove filterPostwar (1945—2000)Remove filter", - "hidden": false + "html": "Medieval (974—1485)Remove filterEarly Modern (1485—1714)Remove filterGeorgians (1714—1837)Remove filterVictorians (1837—1901)Remove filterEarly 20th century (1901—1918)Remove filterInterwar (1918—1939)Remove filterSecond World War (1939—1945)Remove filterPostwar (1945—2000)Remove filter" } ] } diff --git a/src/nationalarchives/components/cookie-banner/fixtures.json b/src/nationalarchives/components/cookie-banner/fixtures.json index 170a6047..f17c7360 100644 --- a/src/nationalarchives/components/cookie-banner/fixtures.json +++ b/src/nationalarchives/components/cookie-banner/fixtures.json @@ -7,8 +7,7 @@ "serviceName": "My service", "cookiesUrl": "/cookies" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "custom preferences set key", @@ -17,8 +16,7 @@ "cookiesUrl": "/cookies", "cookiesPreferencesSetKey": "custom" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "custom policies", @@ -27,8 +25,7 @@ "cookiesUrl": "/cookies", "policies": "custom" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "custom policies key", @@ -37,8 +34,7 @@ "cookiesUrl": "/cookies", "policiesKey": "custom_key" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "with domain", @@ -47,8 +43,7 @@ "cookiesUrl": "/cookies", "cookiesDomain": "nationalarchives.gov.uk" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "with path", @@ -57,8 +52,7 @@ "cookiesUrl": "/cookies", "cookiesPath": "/my-service" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "with preferences set key", @@ -67,8 +61,7 @@ "cookiesUrl": "/cookies", "preferencesSetKey": "custom_preferences_set_key" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "insecure", @@ -77,8 +70,7 @@ "cookiesUrl": "/cookies", "allowInsecure": true }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "with classes", @@ -87,8 +79,7 @@ "cookiesUrl": "/cookies", "classes": "tna-cookie-banner--fixture" }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" }, { "name": "with attributes", @@ -99,8 +90,7 @@ "data-fixturetest": "pass" } }, - "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message", - "hidden": false + "html": "This website uses cookiesWe use some essential cookies to make this service work.We'd also like to use analytics cookies so we can understand how you use the service and make improvements.Accept cookiesReject cookiesSet cookie preferencesYou have accepted optional cookies. You can change your cookie settings on the Cookies page.Close this messageYou have rejected optional cookies. You can change your cookie settings on the Cookies page.Close this message" } ] } diff --git a/src/nationalarchives/components/date-input/fixtures.json b/src/nationalarchives/components/date-input/fixtures.json index 17280afb..560f5061 100644 --- a/src/nationalarchives/components/date-input/fixtures.json +++ b/src/nationalarchives/components/date-input/fixtures.json @@ -10,8 +10,7 @@ "id": "date", "name": "date" }, - "html": "Enter a start dateDayMonthYear", - "hidden": false + "html": "Enter a start dateDayMonthYear" }, { "name": "date input with a preselected value", @@ -27,8 +26,7 @@ "year": "1986" } }, - "html": "Enter a start dateDayMonthYear", - "hidden": false + "html": "Enter a start dateDayMonthYear" }, { "name": "date input with a hint", @@ -40,8 +38,7 @@ "name": "date", "hint": "The earliest date of the record." }, - "html": "Enter a start dateThe earliest date of the record.DayMonthYear", - "hidden": false + "html": "Enter a start dateThe earliest date of the record.DayMonthYear" }, { "name": "date input with an error", @@ -55,8 +52,7 @@ "text": "Date is not valid" } }, - "html": "Enter a start dateError: Date is not validDayMonthYear", - "hidden": false + "html": "Enter a start dateError: Date is not validDayMonthYear" }, { "name": "inline date input", @@ -68,8 +64,7 @@ "name": "date", "inline": true }, - "html": "Enter a start dateDayMonthYear", - "hidden": false + "html": "Enter a start dateDayMonthYear" } ] } diff --git a/src/nationalarchives/components/date-search/fixtures.json b/src/nationalarchives/components/date-search/fixtures.json index 4b53e37c..6dd1cb2b 100644 --- a/src/nationalarchives/components/date-search/fixtures.json +++ b/src/nationalarchives/components/date-search/fixtures.json @@ -10,8 +10,7 @@ "id": "date", "name": "date" }, - "html": "Enter a start date", - "hidden": false + "html": "Enter a start date" }, { "name": "date search with a preselected value", @@ -23,8 +22,7 @@ "name": "date", "value": "1986-09-24" }, - "html": "Enter a start date", - "hidden": false + "html": "Enter a start date" }, { "name": "date search with a hint", @@ -36,8 +34,7 @@ "name": "date", "hint": "The earliest date of the record." }, - "html": "Enter a start dateThe earliest date of the record.", - "hidden": false + "html": "Enter a start dateThe earliest date of the record." }, { "name": "date search with an error", @@ -51,8 +48,7 @@ "text": "Date is not valid" } }, - "html": "Enter a start dateError: Date is not valid", - "hidden": false + "html": "Enter a start dateError: Date is not valid" }, { "name": "inline date search", @@ -64,8 +60,7 @@ "name": "date", "inline": true }, - "html": "Enter a start date", - "hidden": false + "html": "Enter a start date" }, { "name": "max width date search", @@ -77,8 +72,7 @@ "name": "date", "maxWidth": true }, - "html": "Enter a start date", - "hidden": false + "html": "Enter a start date" } ] } diff --git a/src/nationalarchives/components/error-summary/fixtures.json b/src/nationalarchives/components/error-summary/fixtures.json index a301499f..a197a91a 100644 --- a/src/nationalarchives/components/error-summary/fixtures.json +++ b/src/nationalarchives/components/error-summary/fixtures.json @@ -18,8 +18,7 @@ ], "disableAutoFocus": true }, - "html": "There is a problemEnter your full nameThe date of the record cannot be in the future", - "hidden": false + "html": "There is a problemEnter your full nameThe date of the record cannot be in the future" } ] } diff --git a/src/nationalarchives/components/featured-records/fixtures.json b/src/nationalarchives/components/featured-records/fixtures.json index 8daa80a5..bccc92d3 100644 --- a/src/nationalarchives/components/featured-records/fixtures.json +++ b/src/nationalarchives/components/featured-records/fixtures.json @@ -19,8 +19,7 @@ } ] }, - "html": "From our collectionTS 11/45/167TitleCourt records relating to Robert Wedderburn's trialDate1819–1820From our collectionHO 42/191TitleHome office lettersDate1819", - "hidden": false + "html": "From our collectionTS 11/45/167TitleCourt records relating to Robert Wedderburn's trialDate1819–1820From our collectionHO 42/191TitleHome office lettersDate1819" }, { "name": "featured records with images", @@ -37,8 +36,7 @@ } ] }, - "html": "From our collectionTS 11/45/167TitleCourt records relating to Robert Wedderburn's trialDate1819–1820", - "hidden": false + "html": "From our collectionTS 11/45/167TitleCourt records relating to Robert Wedderburn's trialDate1819–1820" } ] } diff --git a/src/nationalarchives/components/filters/fixtures.json b/src/nationalarchives/components/filters/fixtures.json index 6980209b..e79aae47 100644 --- a/src/nationalarchives/components/filters/fixtures.json +++ b/src/nationalarchives/components/filters/fixtures.json @@ -44,8 +44,7 @@ } ] }, - "html": "AllMedieval (974—1485)Early Modern (1485—1714)Georgians (1714—1837)Victorians (1837—1901)Early 20th century (1901—1918)Interwar (1918—1939)Second World War (1939—1945)Postwar (1945—2000)", - "hidden": false + "html": "AllMedieval (974—1485)Early Modern (1485—1714)Georgians (1714—1837)Victorians (1837—1901)Early 20th century (1901—1918)Interwar (1918—1939)Second World War (1939—1945)Postwar (1945—2000)" } ] } diff --git a/src/nationalarchives/components/footer/fixtures.json b/src/nationalarchives/components/footer/fixtures.json index a273c3f8..d1396df8 100644 --- a/src/nationalarchives/components/footer/fixtures.json +++ b/src/nationalarchives/components/footer/fixtures.json @@ -4,8 +4,7 @@ { "name": "minimal", "options": {}, - "html": "", - "hidden": false + "html": "" }, { "name": "items", @@ -140,8 +139,7 @@ } ] }, - "html": "", - "hidden": false + "html": "" } ] } diff --git a/src/nationalarchives/components/global-header/fixtures.json b/src/nationalarchives/components/global-header/fixtures.json index 4e1ca255..802fe76d 100644 --- a/src/nationalarchives/components/global-header/fixtures.json +++ b/src/nationalarchives/components/global-header/fixtures.json @@ -34,8 +34,7 @@ } ] }, - "html": "The National ArchivesBetaMenuAlphaBetaGammaTop item 1Top item 2", - "hidden": false + "html": "The National ArchivesBetaMenuAlphaBetaGammaTop item 1Top item 2" } ] } diff --git a/src/nationalarchives/components/grid/fixtures.json b/src/nationalarchives/components/grid/fixtures.json index e83f6506..c8ac8f1d 100644 --- a/src/nationalarchives/components/grid/fixtures.json +++ b/src/nationalarchives/components/grid/fixtures.json @@ -4,8 +4,7 @@ { "name": "container only", "options": {}, - "html": "", - "hidden": false + "html": "" }, { "name": "container max width", @@ -18,8 +17,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "container no padding", @@ -32,8 +30,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "container element", @@ -46,8 +43,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "container classes", @@ -60,8 +56,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "container attributes", @@ -76,8 +71,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "different columns", @@ -177,8 +171,7 @@ } ] }, - "html": "Full widthHalfHalfThirdThirdThirdTwo thirdsThirdThirdTwo thirdsQuarterQuarterQuarterQuarterHalfQuarterQuarterQuarterHalfQuarterQuarterQuarterHalf", - "hidden": false + "html": "Full widthHalfHalfThirdThirdThirdTwo thirdsThirdThirdTwo thirdsQuarterQuarterQuarterQuarterHalfQuarterQuarterQuarterHalfQuarterQuarterQuarterHalf" }, { "name": "column widths", @@ -193,8 +186,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "responsive column widths", @@ -209,8 +201,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "flexible column widths", @@ -225,8 +216,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "column element", @@ -238,8 +228,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "column classes", @@ -251,8 +240,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" }, { "name": "column attributes", @@ -266,8 +254,7 @@ } ] }, - "html": "Full width", - "hidden": false + "html": "Full width" } ] } diff --git a/src/nationalarchives/components/header/fixtures.json b/src/nationalarchives/components/header/fixtures.json index 55b5f386..12fe0f0d 100644 --- a/src/nationalarchives/components/header/fixtures.json +++ b/src/nationalarchives/components/header/fixtures.json @@ -40,8 +40,7 @@ "target": "_blank" } }, - "html": "Go to the current National Archives websiteThe National ArchivesBetaMenuAlphaBetaGammaTop item 1Top item 2", - "hidden": false + "html": "Go to the current National Archives websiteThe National ArchivesBetaMenuAlphaBetaGammaTop item 1Top item 2" } ] } diff --git a/src/nationalarchives/components/hero/fixtures.json b/src/nationalarchives/components/hero/fixtures.json index 61a1a133..799cf855 100644 --- a/src/nationalarchives/components/hero/fixtures.json +++ b/src/nationalarchives/components/hero/fixtures.json @@ -10,8 +10,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "Title", - "hidden": false + "html": "Title" }, { "name": "with body", @@ -23,8 +22,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "TitleLorem ipsum dolor sit amet, consectetur adipiscing elit.", - "hidden": false + "html": "TitleLorem ipsum dolor sit amet, consectetur adipiscing elit." }, { "name": "with text", @@ -36,8 +34,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "TitleLorem ipsum dolor sit amet, consectetur adipiscing elit.", - "hidden": false + "html": "TitleLorem ipsum dolor sit amet, consectetur adipiscing elit." }, { "name": "with caption", @@ -49,8 +46,7 @@ "imageHeight": 333, "imageCaption": "An interesting photo by a famous photographer ©2023" }, - "html": "About this imageAn interesting photo by a famous photographer ©2023Title", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023Title" }, { "name": "image only", @@ -61,8 +57,7 @@ "imageHeight": 333, "imageCaption": "An interesting photo by a famous photographer ©2023" }, - "html": "About this imageAn interesting photo by a famous photographer ©2023", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023" }, { "name": "image only with no caption", @@ -72,8 +67,7 @@ "imageWidth": 499, "imageHeight": 333 }, - "html": "", - "hidden": false + "html": "" }, { "name": "image with different type", @@ -85,8 +79,7 @@ "imageType": "image/png", "imageCaption": "An interesting photo by a famous photographer ©2023" }, - "html": "About this imageAn interesting photo by a famous photographer ©2023", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023" }, { "name": "with alternative image sources", @@ -103,8 +96,7 @@ } ] }, - "html": "About this imageAn interesting photo by a famous photographer ©2023", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023" }, { "name": "with alternative image sources with media queries", @@ -122,8 +114,7 @@ } ] }, - "html": "About this imageAn interesting photo by a famous photographer ©2023", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023" }, { "name": "with alternative image sources with different width/heights", @@ -142,8 +133,7 @@ } ] }, - "html": "About this imageAn interesting photo by a famous photographer ©2023", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023" }, { "name": "with classes", @@ -156,8 +146,7 @@ "imageCaption": "An interesting photo by a famous photographer ©2023", "classes": "hero__test-class" }, - "html": "About this imageAn interesting photo by a famous photographer ©2023Title", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023Title" }, { "name": "with attributes", @@ -172,8 +161,7 @@ "data-testattribute": "foobar" } }, - "html": "About this imageAn interesting photo by a famous photographer ©2023Title", - "hidden": false + "html": "About this imageAn interesting photo by a famous photographer ©2023Title" } ] } diff --git a/src/nationalarchives/components/index-grid/fixtures.json b/src/nationalarchives/components/index-grid/fixtures.json index 89c3ff45..fc5ab762 100644 --- a/src/nationalarchives/components/index-grid/fixtures.json +++ b/src/nationalarchives/components/index-grid/fixtures.json @@ -37,8 +37,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsCategory #101Category #102Category #103" }, { "name": "heading options", @@ -78,8 +77,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsCategory #101Category #102Category #103" }, { "name": "with body", @@ -118,8 +116,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsLorem ipsumCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsLorem ipsumCategory #101Category #102Category #103" }, { "name": "with text", @@ -158,8 +155,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsLorem ipsumCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsLorem ipsumCategory #101Category #102Category #103" }, { "name": "with item labels", @@ -201,8 +197,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsLorem ipsumCategory #101New:Category #102New:Category #103New:", - "hidden": false + "html": "My dogsLorem ipsumCategory #101New:Category #102New:Category #103New:" }, { "name": "with item subtitles", @@ -244,8 +239,7 @@ "columnsSmall": 2, "columnsTiny": 1 }, - "html": "My dogsLorem ipsumCategory #101Category subtitleCategory #102Category subtitleCategory #103Category subtitle", - "hidden": false + "html": "My dogsLorem ipsumCategory #101Category subtitleCategory #102Category subtitleCategory #103Category subtitle" }, { "name": "with classes", @@ -281,8 +275,7 @@ "columns": 3, "classes": "index-grid__test-class" }, - "html": "My dogsCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsCategory #101Category #102Category #103" }, { "name": "with attributes", @@ -320,8 +313,7 @@ "data-testattribute": "foobar" } }, - "html": "My dogsCategory #101Category #102Category #103", - "hidden": false + "html": "My dogsCategory #101Category #102Category #103" } ] } diff --git a/src/nationalarchives/components/message/fixtures.json b/src/nationalarchives/components/message/fixtures.json index 0b76bddf..493ab54f 100644 --- a/src/nationalarchives/components/message/fixtures.json +++ b/src/nationalarchives/components/message/fixtures.json @@ -7,8 +7,7 @@ "headingLevel": 2, "message": "Please note this page references hunger strikes and force feeding, which some people may find upsetting." }, - "html": "Important informationPlease note this page references hunger strikes and force feeding, which some people may find upsetting.", - "hidden": false + "html": "Important informationPlease note this page references hunger strikes and force feeding, which some people may find upsetting." } ] } diff --git a/src/nationalarchives/components/pagination/fixtures.json b/src/nationalarchives/components/pagination/fixtures.json index 51392bbe..06ef820c 100644 --- a/src/nationalarchives/components/pagination/fixtures.json +++ b/src/nationalarchives/components/pagination/fixtures.json @@ -40,8 +40,7 @@ "href": "#next" } }, - "html": "Previous1⋯678⋯42Next", - "hidden": false + "html": "Previous1⋯678⋯42Next" } ] } diff --git a/src/nationalarchives/components/phase-banner/fixtures.json b/src/nationalarchives/components/phase-banner/fixtures.json index 80d16925..75b99a18 100644 --- a/src/nationalarchives/components/phase-banner/fixtures.json +++ b/src/nationalarchives/components/phase-banner/fixtures.json @@ -7,8 +7,7 @@ "phase": "beta", "message": "This is a new service – give us your feedback to help improve it." }, - "html": "BetaThis is a new service – give us your feedback to help improve it.", - "hidden": false + "html": "BetaThis is a new service – give us your feedback to help improve it." }, { "name": "capital letters", @@ -16,8 +15,7 @@ "phase": "BETA", "message": "Message" }, - "html": "BetaMessage", - "hidden": false + "html": "BetaMessage" }, { "name": "with classes", @@ -26,8 +24,7 @@ "message": "Message", "classes": "tna-phase-banner--fixture" }, - "html": "LiveMessage", - "hidden": false + "html": "LiveMessage" }, { "name": "with attributes", @@ -38,8 +35,7 @@ "data-fixturetest": "pass" } }, - "html": "LiveMessage", - "hidden": false + "html": "LiveMessage" } ] } diff --git a/src/nationalarchives/components/picture/fixtures.json b/src/nationalarchives/components/picture/fixtures.json index 3ecfd42a..d0e094d4 100644 --- a/src/nationalarchives/components/picture/fixtures.json +++ b/src/nationalarchives/components/picture/fixtures.json @@ -9,8 +9,7 @@ "width": 499, "height": 333 }, - "html": "", - "hidden": false + "html": "" }, { "name": "with caption", @@ -21,8 +20,7 @@ "height": 333, "caption": "This is a pretty image" }, - "html": "This is a pretty image", - "hidden": false + "html": "This is a pretty image" }, { "name": "with information", @@ -39,8 +37,7 @@ } ] }, - "html": "Lorem ipsum transcript", - "hidden": false + "html": "Lorem ipsum transcript" }, { "name": "with multiple information", @@ -62,8 +59,7 @@ } ] }, - "html": "TranscriptTranslationLorem ipsum transcriptLorem ipsum translation", - "hidden": false + "html": "TranscriptTranslationLorem ipsum transcriptLorem ipsum translation" }, { "name": "custom open and close label", @@ -82,8 +78,7 @@ } ] }, - "html": "Lorem ipsum transcript", - "hidden": false + "html": "Lorem ipsum transcript" } ] } diff --git a/src/nationalarchives/components/radios/fixtures.json b/src/nationalarchives/components/radios/fixtures.json index 39e70cc5..2d817392 100644 --- a/src/nationalarchives/components/radios/fixtures.json +++ b/src/nationalarchives/components/radios/fixtures.json @@ -24,8 +24,7 @@ } ] }, - "html": "TypeAudioImageVideo", - "hidden": false + "html": "TypeAudioImageVideo" }, { "name": "small radios", @@ -79,8 +78,7 @@ ], "small": true }, - "html": "TypeAdmiralty, Navy, Royal Marines, and CoastguardAir Ministry and Royal Air Force recordsBoard of Trade and successorsChancery, the Wardrobe, Royal Household, Exchequer and various commissionsColonial Office, Commonwealth and Foreign and Commonwealth OfficesExchequer, Office of First Fruits and Tenths, and the Court of AugmentationsForeign OfficeHome OfficePrerogative Court of CanterburyWar Office, Armed Forces, Judge Advocate General, and related bodies", - "hidden": false + "html": "TypeAdmiralty, Navy, Royal Marines, and CoastguardAir Ministry and Royal Air Force recordsBoard of Trade and successorsChancery, the Wardrobe, Royal Household, Exchequer and various commissionsColonial Office, Commonwealth and Foreign and Commonwealth OfficesExchequer, Office of First Fruits and Tenths, and the Court of AugmentationsForeign OfficeHome OfficePrerogative Court of CanterburyWar Office, Armed Forces, Judge Advocate General, and related bodies" }, { "name": "radios with a preselected value", @@ -106,8 +104,7 @@ ], "selected": "image" }, - "html": "TypeAudioImageVideo", - "hidden": false + "html": "TypeAudioImageVideo" }, { "name": "radios with a hint", @@ -133,8 +130,7 @@ } ] }, - "html": "TypeYou can only select one.AudioImageVideo", - "hidden": false + "html": "TypeYou can only select one.AudioImageVideo" }, { "name": "radios with an error", @@ -162,8 +158,7 @@ } ] }, - "html": "TypeError: You must select a typeAudioImageVideo", - "hidden": false + "html": "TypeError: You must select a typeAudioImageVideo" }, { "name": "inline radios", @@ -189,8 +184,7 @@ ], "inline": true }, - "html": "TypeAudioImageVideo", - "hidden": false + "html": "TypeAudioImageVideo" } ] } diff --git a/src/nationalarchives/components/search-field/fixtures.json b/src/nationalarchives/components/search-field/fixtures.json index 2c33ce2c..d37d56c1 100644 --- a/src/nationalarchives/components/search-field/fixtures.json +++ b/src/nationalarchives/components/search-field/fixtures.json @@ -10,8 +10,7 @@ "id": "search1", "name": "q" }, - "html": "Catalogue search resultsSearch", - "hidden": false + "html": "Catalogue search resultsSearch" }, { "name": "search field with a preselected value", @@ -23,8 +22,7 @@ "name": "q", "value": "badgers" }, - "html": "Catalogue search resultsSearch", - "hidden": false + "html": "Catalogue search resultsSearch" }, { "name": "search field with a hint", @@ -36,8 +34,7 @@ "name": "q", "hint": "Try searching for something interesting" }, - "html": "Catalogue search resultsTry searching for something interestingSearch", - "hidden": false + "html": "Catalogue search resultsTry searching for something interestingSearch" } ] } diff --git a/src/nationalarchives/components/select/fixtures.json b/src/nationalarchives/components/select/fixtures.json index ba54a376..cc56f560 100644 --- a/src/nationalarchives/components/select/fixtures.json +++ b/src/nationalarchives/components/select/fixtures.json @@ -24,8 +24,7 @@ } ] }, - "html": "Sort byRelevanceDateTitle", - "hidden": false + "html": "Sort byRelevanceDateTitle" }, { "name": "select with a preselected value", @@ -51,8 +50,7 @@ ], "selected": "date" }, - "html": "Sort byRelevanceDateTitle", - "hidden": false + "html": "Sort byRelevanceDateTitle" }, { "name": "select with a hint", @@ -78,8 +76,7 @@ } ] }, - "html": "Sort bySelect a field to sort by.RelevanceDateTitle", - "hidden": false + "html": "Sort bySelect a field to sort by.RelevanceDateTitle" }, { "name": "select with an error", @@ -107,8 +104,7 @@ } ] }, - "html": "Sort byError: You must select a field to sort byRelevanceDateTitle", - "hidden": false + "html": "Sort byError: You must select a field to sort byRelevanceDateTitle" }, { "name": "inline select", @@ -134,8 +130,7 @@ ], "inline": true }, - "html": "Sort byRelevanceDateTitle", - "hidden": false + "html": "Sort byRelevanceDateTitle" }, { "name": "select size", @@ -161,8 +156,7 @@ ], "size": "xl" }, - "html": "Sort byRelevanceDateTitle", - "hidden": false + "html": "Sort byRelevanceDateTitle" } ] } diff --git a/src/nationalarchives/components/sensitive-image/fixtures.json b/src/nationalarchives/components/sensitive-image/fixtures.json index 68f72898..787bc5b3 100644 --- a/src/nationalarchives/components/sensitive-image/fixtures.json +++ b/src/nationalarchives/components/sensitive-image/fixtures.json @@ -13,8 +13,7 @@ "warning": "This is a gory photo", "action": "Show me the gory photo" }, - "html": "This is a gory photoShow me the gory photo", - "hidden": false + "html": "This is a gory photoShow me the gory photo" }, { "name": "with classes", @@ -29,8 +28,7 @@ "action": "Show me the gory photo", "classes": "sensitive-image__test-class" }, - "html": "This is a gory photoShow me the gory photo", - "hidden": false + "html": "This is a gory photoShow me the gory photo" }, { "name": "with attributes", @@ -47,8 +45,7 @@ "data-testattribute": "foobar" } }, - "html": "This is a gory photoShow me the gory photo", - "hidden": false + "html": "This is a gory photoShow me the gory photo" } ] } diff --git a/src/nationalarchives/components/skip-link/fixtures.json b/src/nationalarchives/components/skip-link/fixtures.json index a47f24d3..8113b5cd 100644 --- a/src/nationalarchives/components/skip-link/fixtures.json +++ b/src/nationalarchives/components/skip-link/fixtures.json @@ -4,8 +4,7 @@ { "name": "minimal", "options": {}, - "html": "Skip to main content", - "hidden": false + "html": "Skip to main content" } ] } diff --git a/src/nationalarchives/components/tabs/fixtures.json b/src/nationalarchives/components/tabs/fixtures.json index bf5f83f8..569c864d 100644 --- a/src/nationalarchives/components/tabs/fixtures.json +++ b/src/nationalarchives/components/tabs/fixtures.json @@ -23,8 +23,7 @@ } ] }, - "html": "Alpha sectionBeta sectionGamma sectionAlpha titleLorem ipsumBeta titleLorem ipsumGamma titleLorem ipsum", - "hidden": false + "html": "Alpha sectionBeta sectionGamma sectionAlpha titleLorem ipsumBeta titleLorem ipsumGamma titleLorem ipsum" } ] } diff --git a/src/nationalarchives/components/text-input/fixtures.json b/src/nationalarchives/components/text-input/fixtures.json index 7d5383e1..151eb9ba 100644 --- a/src/nationalarchives/components/text-input/fixtures.json +++ b/src/nationalarchives/components/text-input/fixtures.json @@ -10,8 +10,7 @@ "id": "name", "name": "name" }, - "html": "Enter your first name", - "hidden": false + "html": "Enter your first name" }, { "name": "text input with a preselected value", @@ -23,8 +22,7 @@ "name": "name", "value": "John" }, - "html": "Enter your first name", - "hidden": false + "html": "Enter your first name" }, { "name": "text input with a hint", @@ -36,8 +34,7 @@ "name": "name", "hint": "What people call you by." }, - "html": "Enter your first nameWhat people call you by.", - "hidden": false + "html": "Enter your first nameWhat people call you by." }, { "name": "text input with an error", @@ -51,8 +48,7 @@ "text": "Enter a name" } }, - "html": "Enter your first nameError: Enter a name", - "hidden": false + "html": "Enter your first nameError: Enter a name" }, { "name": "inline text input", @@ -64,8 +60,7 @@ "name": "name", "inline": true }, - "html": "Enter your first name", - "hidden": false + "html": "Enter your first name" }, { "name": "text input size", @@ -77,8 +72,7 @@ "name": "name", "size": "m" }, - "html": "Enter your first name", - "hidden": false + "html": "Enter your first name" } ] } diff --git a/src/nationalarchives/components/textarea/fixtures.json b/src/nationalarchives/components/textarea/fixtures.json index 100a3bc1..13a6f906 100644 --- a/src/nationalarchives/components/textarea/fixtures.json +++ b/src/nationalarchives/components/textarea/fixtures.json @@ -10,8 +10,7 @@ "id": "feedback", "name": "name" }, - "html": "Enter your feedback", - "hidden": false + "html": "Enter your feedback" }, { "name": "textarea with a preselected value", @@ -23,8 +22,7 @@ "name": "feedback", "value": "I like this 👍🏼" }, - "html": "Enter your feedbackI like this 👍🏼", - "hidden": false + "html": "Enter your feedbackI like this 👍🏼" }, { "name": "textarea with a hint", @@ -36,8 +34,7 @@ "name": "feedback", "hint": "What did you think?" }, - "html": "Enter your feedbackWhat did you think?", - "hidden": false + "html": "Enter your feedbackWhat did you think?" }, { "name": "textarea with an error", @@ -51,8 +48,7 @@ "text": "Enter some feedback" } }, - "html": "Enter your feedbackError: Enter some feedback", - "hidden": false + "html": "Enter your feedbackError: Enter some feedback" }, { "name": "inline textarea", @@ -64,8 +60,7 @@ "name": "feedback", "inline": true }, - "html": "Enter your feedback", - "hidden": false + "html": "Enter your feedback" }, { "name": "textarea size", @@ -77,8 +72,7 @@ "name": "feedback", "size": "m" }, - "html": "Enter your feedback", - "hidden": false + "html": "Enter your feedback" } ] }
Card body
Select all that apply.
Error: You must select a category
We use some essential cookies to make this service work.
We'd also like to use analytics cookies so we can understand how you use the service and make improvements.
You have accepted optional cookies. You can change your cookie settings on the Cookies page.
You have rejected optional cookies. You can change your cookie settings on the Cookies page.
The earliest date of the record.
Error: Date is not valid
Full width
Half
Third
Two thirds
Quarter
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum
This is a new service – give us your feedback to help improve it.
Message
This is a pretty image
Lorem ipsum transcript
Lorem ipsum translation
You can only select one.
Error: You must select a type
Try searching for something interesting
Select a field to sort by.
Error: You must select a field to sort by
This is a gory photo
What people call you by.
Error: Enter a name
What did you think?
Error: Enter some feedback