Skip to content

Commit

Permalink
Add examples of various legend sizes for fieldset 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 150f1d2 commit 154e6da
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/govuk/components/fieldset/fieldset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 154e6da

Please sign in to comment.