From 154e6da29cb2504b3af01fd76333ed60e0f60aab Mon Sep 17 00:00:00 2001 From: Vanita Barrett-Smith Date: Mon, 13 Jun 2022 16:50:10 +0100 Subject: [PATCH] Add examples of various legend sizes for fieldset component Originally authored by @matthew-shaw --- src/govuk/components/fieldset/fieldset.yaml | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/govuk/components/fieldset/fieldset.yaml b/src/govuk/components/fieldset/fieldset.yaml index 5f7e43721b..eadfe2fa95 100644 --- a/src/govuk/components/fieldset/fieldset.yaml +++ b/src/govuk/components/fieldset/fieldset.yaml @@ -50,12 +50,35 @@ examples: data: legend: text: What is your address? -- name: as page heading +- name: as page heading xl data: legend: text: What is your address? classes: govuk-fieldset__legend--xl isPageHeading: true +- name: as page heading l + data: + legend: + text: What is your address? + classes: govuk-fieldset__legend--l + isPageHeading: true +- name: as page heading m + data: + legend: + text: What is your address? + classes: govuk-fieldset__legend--m + isPageHeading: true +- name: as page heading s + data: + legend: + text: What is your address? + classes: govuk-fieldset__legend--s + isPageHeading: true +- name: as page heading without class + data: + legend: + text: What is your address? + isPageHeading: true # Hidden examples are not shown in the review app, but are used for tests and HTML fixtures - name: html fieldset content