Skip to content

Commit baf6e69

Browse files
Use search input component in form alignment examples
1 parent 2d23161 commit baf6e69

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

packages/nhsuk-frontend-review/src/examples/form-alignment.njk

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,17 @@
3737
classes: "nhsuk-fieldset__legend--m"
3838
}
3939
}) %}
40-
{{ input({
40+
{{ searchInput({
4141
label: {
4242
text: "Search patients by NHS number",
4343
classes: "nhsuk-u-visually-hidden"
4444
},
45+
placeholder: "NHS number",
4546
name: "example-input",
4647
id: "example-input",
47-
type: "search",
4848
classes: "nhsuk-u-width-full",
4949
formGroup: {
50-
classes: "nhsuk-u-width-one-half",
51-
afterInput: {
52-
html: button({
53-
html: nhsukIcon("search", {
54-
title: "Search"
55-
}),
56-
classes: "nhsuk-button--icon nhsuk-button--small"
57-
})
58-
}
50+
classes: "nhsuk-u-width-one-half"
5951
}
6052
}) }}
6153
{% endcall %}

0 commit comments

Comments
 (0)