-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a063e11
commit aa992cd
Showing
63 changed files
with
386 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+7.58 KB
..._screenshots__/visual-regression.spec.ts/input/default/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.66 KB
...__screenshots__/visual-regression.spec.ts/input/default/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.1 KB
...enshots__/visual-regression.spec.ts/input/default/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.6 KB
...enshots__/visual-regression.spec.ts/input/default/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.95 KB
...__/visual-regression.spec.ts/input/not-as-page-heading/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.99 KB
...s__/visual-regression.spec.ts/input/not-as-page-heading/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.9 KB
...sual-regression.spec.ts/input/not-as-page-heading/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.54 KB
...sual-regression.spec.ts/input/not-as-page-heading/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.8 KB
...reenshots__/visual-regression.spec.ts/input/with-error/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.5 KB
...creenshots__/visual-regression.spec.ts/input/with-error/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.4 KB
...hots__/visual-regression.spec.ts/input/with-error/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.9 KB
...hots__/visual-regression.spec.ts/input/with-error/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.1 KB
...ots__/visual-regression.spec.ts/input/with-fixed-width/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.8 KB
...hots__/visual-regression.spec.ts/input/with-fixed-width/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.3 KB
.../visual-regression.spec.ts/input/with-fixed-width/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.3 KB
.../visual-regression.spec.ts/input/with-fixed-width/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20 KB
...ots__/visual-regression.spec.ts/input/with-fluid-width/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.7 KB
...hots__/visual-regression.spec.ts/input/with-fluid-width/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.2 KB
.../visual-regression.spec.ts/input/with-fluid-width/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41 KB
.../visual-regression.spec.ts/input/with-fluid-width/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.9 KB
...creenshots__/visual-regression.spec.ts/input/with-hint/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.8 KB
...screenshots__/visual-regression.spec.ts/input/with-hint/screenshot--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.7 KB
...shots__/visual-regression.spec.ts/input/with-hint/screenshot--mobile-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22 KB
...shots__/visual-regression.spec.ts/input/with-hint/screenshot--mobile-safari.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
...enshots__/visual-regression.spec.ts/input/with-numeric/screenshot--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
...eenshots__/visual-regression.spec.ts/input/with-numeric/screenshot--firefox.png
Oops, something went wrong.
Binary file added
BIN
+35.5 KB
...ts__/visual-regression.spec.ts/input/with-numeric/screenshot--mobile-chrome.png
Oops, something went wrong.
Binary file added
BIN
+27.6 KB
...ts__/visual-regression.spec.ts/input/with-numeric/screenshot--mobile-safari.png
Oops, something went wrong.
Binary file added
BIN
+15.2 KB
...-regression.spec.ts/input/with-prefix-and-suffix-error/screenshot--chromium.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...l-regression.spec.ts/input/with-prefix-and-suffix-error/screenshot--firefox.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...ession.spec.ts/input/with-prefix-and-suffix-error/screenshot--mobile-chrome.png
Oops, something went wrong.
Binary file added
BIN
+33.1 KB
...ession.spec.ts/input/with-prefix-and-suffix-error/screenshot--mobile-safari.png
Oops, something went wrong.
Binary file added
BIN
+10.8 KB
...visual-regression.spec.ts/input/with-prefix-and-suffix/screenshot--chromium.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
.../visual-regression.spec.ts/input/with-prefix-and-suffix/screenshot--firefox.png
Oops, something went wrong.
Binary file added
BIN
+28.8 KB
...l-regression.spec.ts/input/with-prefix-and-suffix/screenshot--mobile-chrome.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
...l-regression.spec.ts/input/with-prefix-and-suffix/screenshot--mobile-safari.png
Oops, something went wrong.
Binary file added
BIN
+8.49 KB
...eenshots__/visual-regression.spec.ts/input/with-prefix/screenshot--chromium.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
...reenshots__/visual-regression.spec.ts/input/with-prefix/screenshot--firefox.png
Oops, something went wrong.
Binary file added
BIN
+19 KB
...ots__/visual-regression.spec.ts/input/with-prefix/screenshot--mobile-chrome.png
Oops, something went wrong.
Binary file added
BIN
+15.7 KB
...ots__/visual-regression.spec.ts/input/with-prefix/screenshot--mobile-safari.png
Oops, something went wrong.
Binary file added
BIN
+9.45 KB
...eenshots__/visual-regression.spec.ts/input/with-suffix/screenshot--chromium.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
...reenshots__/visual-regression.spec.ts/input/with-suffix/screenshot--firefox.png
Oops, something went wrong.
Binary file added
BIN
+22.5 KB
...ots__/visual-regression.spec.ts/input/with-suffix/screenshot--mobile-chrome.png
Oops, something went wrong.
Binary file added
BIN
+22.2 KB
...ots__/visual-regression.spec.ts/input/with-suffix/screenshot--mobile-safari.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { expect, test } from '../../../fixtures' | ||
|
||
test.describe('input, default', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/components/input/default') | ||
}) | ||
|
||
test('displays the heading', async ({ page }) => { | ||
await expect( | ||
page.getByRole('heading'), | ||
).toHaveText('What is the name of the event?') | ||
}) | ||
|
||
test('displays the input', async ({ page }) => { | ||
await expect(page.getByRole('textbox')).toBeVisible() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { expect, test } from '../../../fixtures' | ||
|
||
test.describe('input, with error', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/components/input/with-error') | ||
}) | ||
|
||
test('displays the heading', async ({ page }) => { | ||
await expect( | ||
page.getByRole('heading'), | ||
).toHaveText('What is the name of the event?') | ||
}) | ||
|
||
test('displays the error message', async ({ page }) => { | ||
await expect(page.getByRole('textbox')).toHaveDescription('Error: Enter an event name') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { expect, test } from '../../../fixtures' | ||
|
||
test.describe('input, with hint', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/components/input/with-hint') | ||
}) | ||
|
||
test('displays the hint text', async ({ page }) => { | ||
await expect( | ||
page.getByText('The name you’ll use on promotional material'), | ||
).toBeVisible() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { expect, test } from '../../../fixtures' | ||
|
||
test.describe('input, with prefix and suffix', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto('/components/input/with-prefix-and-suffix') | ||
}) | ||
|
||
test('displays prefix and suffix', async ({ page }) => { | ||
await expect( | ||
page.getByText('£'), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByText('per item', { exact: true }), | ||
).toBeVisible() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/nunjucks/moduk/components/input/__examples__/default.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "What is the name of the event?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
id: "default", | ||
name: "event-name" | ||
}) }} |
9 changes: 9 additions & 0 deletions
9
src/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "What is the name of the event?" | ||
}, | ||
id: "with-not-as-page-heading", | ||
name: "event-name" | ||
}) }} |
17 changes: 17 additions & 0 deletions
17
src/nunjucks/moduk/components/input/__examples__/with-error.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "What is the name of the event?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
id: "with-error", | ||
name: "event-name", | ||
hint: { | ||
text: "The name you’ll use on promotional material" | ||
}, | ||
errorMessage: { | ||
text: "Enter an event name" | ||
} | ||
}) }} |
57 changes: 57 additions & 0 deletions
57
src/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
<div> | ||
{{ modukInput({ | ||
label: { | ||
text: "20 character width" | ||
}, | ||
classes: "govuk-input--width-20", | ||
id: "width-20", | ||
name: "width-20" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "10 character width" | ||
}, | ||
classes: "govuk-input--width-10", | ||
id: "width-10", | ||
name: "width-10" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "5 character width" | ||
}, | ||
classes: "govuk-input--width-5", | ||
id: "width-5", | ||
name: "width-5" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "4 character width" | ||
}, | ||
classes: "govuk-input--width-4", | ||
id: "width-4", | ||
name: "width-4" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "3 character width" | ||
}, | ||
classes: "govuk-input--width-3", | ||
id: "width-3", | ||
name: "width-3" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "2 character width" | ||
}, | ||
classes: "govuk-input--width-2", | ||
id: "width-2", | ||
name: "width-2" | ||
}) }} | ||
</div> |
57 changes: 57 additions & 0 deletions
57
src/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
<div> | ||
{{ modukInput({ | ||
label: { | ||
text: "Full width" | ||
}, | ||
classes: "govuk-!-width-full", | ||
id: "full", | ||
name: "full" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "Three-quarters width" | ||
}, | ||
classes: "govuk-!-width-three-quarters", | ||
id: "three-quarters", | ||
name: "three-quarters" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "Two-thirds width" | ||
}, | ||
classes: "govuk-!-width-two-thirds", | ||
id: "two-thirds", | ||
name: "two-thirds" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "One-half width" | ||
}, | ||
classes: "govuk-!-width-one-half", | ||
id: "one-half", | ||
name: "one-half" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "One-third width" | ||
}, | ||
classes: "govuk-!-width-one-third", | ||
id: "one-third", | ||
name: "one-third" | ||
}) }} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "One-quarter width" | ||
}, | ||
classes: "govuk-!-width-one-quarter", | ||
id: "one-quarter", | ||
name: "one-quarter" | ||
}) }} | ||
</div> |
14 changes: 14 additions & 0 deletions
14
src/nunjucks/moduk/components/input/__examples__/with-hint.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "What is the name of the event?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
hint: { | ||
text: "The name you’ll use on promotional material" | ||
}, | ||
id: "with-hint", | ||
name: "event-name" | ||
}) }} |
17 changes: 17 additions & 0 deletions
17
src/nunjucks/moduk/components/input/__examples__/with-numeric.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
label: { | ||
text: "What is your account number?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
classes: "govuk-input--width-10", | ||
hint: { | ||
text: "Must be between 6 and 8 digits long" | ||
}, | ||
id: "with-numeric", | ||
name: "account-number", | ||
inputmode: "numeric", | ||
spellcheck: false | ||
}) }} |
22 changes: 22 additions & 0 deletions
22
src/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
id: "with-prefix-and-suffix-error", | ||
name: "cost-per-item", | ||
label: { | ||
text: "What is the cost per item, in pounds?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
prefix: { | ||
text: "£" | ||
}, | ||
suffix: { | ||
text: "per item" | ||
}, | ||
errorMessage: { | ||
text: "Enter a cost per item, in pounds" | ||
}, | ||
classes: "govuk-input--width-5", | ||
spellcheck: false | ||
}) }} |
19 changes: 19 additions & 0 deletions
19
src/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
id: "with-prefix-and-suffix", | ||
name: "cost-per-item", | ||
label: { | ||
text: "What is the cost per item, in pounds?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
prefix: { | ||
text: "£" | ||
}, | ||
suffix: { | ||
text: "per item" | ||
}, | ||
classes: "govuk-input--width-5", | ||
spellcheck: false | ||
}) }} |
16 changes: 16 additions & 0 deletions
16
src/nunjucks/moduk/components/input/__examples__/with-prefix.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
id: "with-prefix", | ||
name: "cost", | ||
label: { | ||
text: "What is the cost in pounds?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
prefix: { | ||
text: "£" | ||
}, | ||
classes: "govuk-input--width-5", | ||
spellcheck: false | ||
}) }} |
16 changes: 16 additions & 0 deletions
16
src/nunjucks/moduk/components/input/__examples__/with-suffix.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% from "moduk/components/input/macro.njk" import modukInput %} | ||
|
||
{{ modukInput({ | ||
id: "with-suffix", | ||
name: "weight", | ||
label: { | ||
text: "What is the weight in kilograms?", | ||
classes: "govuk-label--l", | ||
isPageHeading: true | ||
}, | ||
suffix: { | ||
text: "kg" | ||
}, | ||
classes: "govuk-input--width-5", | ||
spellcheck: false | ||
}) }} |
Oops, something went wrong.