From 9e834a4e988654a1998b25817e167c73021dfa01 Mon Sep 17 00:00:00 2001 From: Vanita Barrett-Smith Date: Mon, 13 Jun 2022 16:51:49 +0100 Subject: [PATCH] Add examples of various label sizes for label component Originally authored by @matthew-shaw --- src/govuk/components/label/label.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/govuk/components/label/label.yaml b/src/govuk/components/label/label.yaml index d5cd6500aa..50e7049777 100644 --- a/src/govuk/components/label/label.yaml +++ b/src/govuk/components/label/label.yaml @@ -32,11 +32,30 @@ examples: data: classes: govuk-label--s text: National Insurance number - - name: as page heading + - name: as page heading xl data: text: National Insurance number classes: govuk-label--xl isPageHeading: true + - name: as page heading l + data: + text: National Insurance number + classes: govuk-label--l + isPageHeading: true + - name: as page heading m + data: + text: National Insurance number + classes: govuk-label--m + isPageHeading: true + - name: as page heading s + data: + text: National Insurance number + classes: govuk-label--s + isPageHeading: true + - name: as page heading without class + data: + text: National Insurance number + isPageHeading: true # Hidden examples are not shown in the review app, but are used for tests and HTML fixtures - name: empty