Skip to content

Commit 379a646

Browse files
committed
Use vue code blocks everywhere and convert to vue-html in content plugin if needed
1 parent a52aef0 commit 379a646

27 files changed

+61
-59
lines changed

content/2.components/accordion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The accordion component lets users show and hide sections of related content on
88

99
See the [GOV.UK Design System documentation on accordions](https://design-system.service.gov.uk/components/accordion/) for more information on when to use this component.
1010

11-
```vue-html
11+
```vue
1212
<gv-accordion>
1313
<gv-accordion-section heading="Writing well for the web">
1414
<p class="govuk-body">This is the content for Writing well for the web.</p>

content/2.components/back-link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use the back link component to help users go back to the previous page in a mult
88

99
See the [GOV.UK Design System documentation on back links](https://design-system.service.gov.uk/components/back-link/) for more information on when to use this component.
1010

11-
```vue-html
11+
```vue
1212
<gv-back-link href="https://example.com">Back</gv-back-link>
1313
```
1414

content/2.components/breadcrumbs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The breadcrumbs component helps users to understand where they are within a webs
88

99
See the [GOV.UK Design System documentation on breadcrumbs](https://design-system.service.gov.uk/components/breadcrumbs/) for more information on when to use this component.
1010

11-
```vue-html
11+
```vue
1212
<gv-breadcrumbs>
1313
<gv-breadcrumb-item href="#">Home</gv-breadcrumb-item>
1414
<gv-breadcrumb-item href="#">Passports, travel and living abroad</gv-breadcrumb-item>
@@ -60,7 +60,7 @@ function handleClick(destination: String) {
6060
If you have long breadcrumbs you can configure the component to only show the first and last items on mobile devices
6161
by setting `:collapse-on-mobile="true"`.
6262

63-
```vue-html
63+
```vue
6464
<gv-breadcrumbs :collapse-on-mobile="true">
6565
<gv-breadcrumb-item href="#">Home</gv-breadcrumb-item>
6666
<gv-breadcrumb-item href="#">Environment</gv-breadcrumb-item>

content/2.components/button.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function handleClick() {
5353

5454
Set `:is-start-button="true"` to show a start button.
5555

56-
```vue-html
56+
```vue
5757
<gv-button :is-start-button="true">
5858
Start now
5959
</gv-button>
@@ -63,13 +63,13 @@ Set `:is-start-button="true"` to show a start button.
6363

6464
Use the `variant` prop to change between primary, secondary and warning buttons.
6565

66-
```vue-html
66+
```vue
6767
<gv-button variant="secondary">
6868
Find address
6969
</gv-button>
7070
```
7171

72-
```vue-html
72+
```vue
7373
<gv-button variant="warning">
7474
Delete account
7575
</gv-button>
@@ -79,7 +79,7 @@ Use the `variant` prop to change between primary, secondary and warning buttons.
7979

8080
Wrap buttons in a `gv-button-group` to display them side-by-side on larger screens or stacked on smaller screens.
8181

82-
```vue-html
82+
```vue
8383
<gv-button-group>
8484
<gv-button>
8585
Save and continue

content/2.components/character-count.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Help users know how much text they can enter when there is a limit on the number
88

99
See the [GOV.UK Design System documentation on character counts](https://design-system.service.gov.uk/components/character-count/) for more information on when to use this component.
1010

11-
```vue-html
11+
```vue
1212
<gv-character-count
1313
label="Can you provide more detail?"
1414
:label-is-page-heading="true"
@@ -25,7 +25,7 @@ See the [GOV.UK Design System documentation on character counts](https://design-
2525

2626
Use the `max-words` prop to count words instead of characters. A word is any group of consecutive non-whitespace characters.
2727

28-
```vue-html
28+
```vue
2929
<gv-character-count
3030
label="Enter a job description"
3131
:label-is-page-heading="true"

content/2.components/checkboxes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const termsAccepted = ref('No')
101101

102102
You can add hints to both the checkbox group and individual checkboxes using the `hint` prop or slot.
103103

104-
```vue-html
104+
```vue
105105
<gv-checkboxes
106106
:legend-is-page-heading="true"
107107
legend-class="govuk-fieldset__legend--l"
@@ -157,7 +157,7 @@ const countries = ref([])
157157

158158
You can show conditional content that's only shown when a checkbox is checked using the `conditional` slot.
159159

160-
```vue-html
160+
```vue
161161
<gv-checkboxes
162162
:legend-is-page-heading="true"
163163
legend-class="govuk-fieldset__legend--l"
@@ -193,7 +193,7 @@ You can show conditional content that's only shown when a checkbox is checked us
193193

194194
Set the `size` prop to `small` to use smaller checkboxes.
195195

196-
```vue-html
196+
```vue
197197
<gv-checkboxes
198198
:legend-is-page-heading="true"
199199
legend-class="govuk-fieldset__legend--m"
@@ -211,7 +211,7 @@ Set the `size` prop to `small` to use smaller checkboxes.
211211

212212
Set the `error-message` prop to display an error.
213213

214-
```vue-html
214+
```vue
215215
<gv-checkboxes
216216
:legend-is-page-heading="true"
217217
legend-class="govuk-fieldset__legend--l"

content/2.components/details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Make a page easier to scan by letting users reveal more detailed information onl
88

99
See the [GOV.UK Design System documentation on the details component](https://design-system.service.gov.uk/components/details/) for more information on when to use this component.
1010

11-
```vue-html
11+
```vue
1212
<gv-details summary="Help with nationality">
1313
<p class="govuk-body">
1414
We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot

content/2.components/error-message.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ when there is a validation error. In the error message explain what went wrong a
1010
See the [GOV.UK Design System documentation on error messages](https://design-system.service.gov.uk/components/error-message/)
1111
for more information on when to use this component.
1212

13-
```vue-html
13+
```vue
1414
<gv-error-message>Enter your date of birth</gv-error-message>
1515
```
1616

content/2.components/error-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ answer that contains an error.
1212
See the [GOV.UK Design System documentation on error summaries](https://design-system.service.gov.uk/components/error-summary/)
1313
for more information on when to use this component.
1414

15-
```vue-html
15+
```vue
1616
<gv-error-summary :disable-auto-focus="true">
1717
<gv-error-link target-id="name">
1818
Enter your full name

content/2.components/fieldset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Use the fieldset component to group related form inputs.
99
See the [GOV.UK Design System documentation on fieldsets](https://design-system.service.gov.uk/components/fieldset/)
1010
for more information on when to use this component.
1111

12-
```vue-html
12+
```vue
1313
<gv-fieldset
1414
legend="What is your address?"
1515
:legend-is-page-heading="true"

0 commit comments

Comments
 (0)