Skip to content

Commit

Permalink
Remove default href option from examples
Browse files Browse the repository at this point in the history
The template already uses a default href of ‘#’ if no href is provided, which we want to test – passing ‘#’ as an option defeats the point of the test.
  • Loading branch information
36degrees committed Jun 10, 2024
1 parent a4a9e41 commit 0b4a917
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,32 @@ params:

examples:
- name: default
options:
href: '#'
options: {}
- name: with custom text
options:
href: '#'
text: Back to home
- name: inverse
previewLayoutModifiers:
- inverse
options:
classes: govuk-back-link--inverse
href: '#'

# Hidden examples are not shown in the review app, but are used for tests and HTML fixtures
- name: classes
hidden: true
options:
classes: app-back-link--custom-class
href: '#'
- name: html as text
hidden: true
options:
text: <b>Home</b>
href: '#'
- name: html
hidden: true
options:
html: <b>Back</b>
href: '#'
- name: attributes
hidden: true
options:
href: '#'
html: <b>Back to home</b>
attributes:
data-test: attribute
aria-label: Back to home

0 comments on commit 0b4a917

Please sign in to comment.