diff --git a/src/patterns/question-pages/passport.njk b/src/patterns/question-pages/passport.njk index 4fca63c4e2..c31b4c6ef4 100644 --- a/src/patterns/question-pages/passport.njk +++ b/src/patterns/question-pages/passport.njk @@ -6,6 +6,7 @@ layout: layout-example.njk {% from "input/macro.njk" import govukInput %} {% from "date-input/macro.njk" import govukDateInput %} {% from "button/macro.njk" import govukButton %} +{% from "fieldset/macro.njk" import govukFieldset %}
@@ -20,14 +21,22 @@ layout: layout-example.njk
- {{ govukInput({ - label: { - "html": '

Passport number

', - "hintText": "For example, 502135326" - }, - id: "passport-number", - name: "passport-number" - }) }} + {% call govukFieldset({ + "legendHtml": '

Passport number

', + "legendHintText": 'For example, 502135326' + }) %} + + {{ govukInput({ + label: { + "html": 'Passport number', + "hintText": 'For example, 502135326', + "classes": 'govuk-h-visually-hidden' + }, + id: "passport-number", + name: "passport-number" + }) }} + + {% endcall %} {{ govukDateInput({