Skip to content

Commit

Permalink
Add examples of various label sizes for label component
Browse files Browse the repository at this point in the history
Originally authored by @matthew-shaw
  • Loading branch information
Vanita Barrett-Smith committed Jun 13, 2022
1 parent 154e6da commit 9e834a4
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/govuk/components/label/label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e834a4

Please sign in to comment.