diff --git a/packages/govuk-frontend/src/govuk/components/textarea/template.njk b/packages/govuk-frontend/src/govuk/components/textarea/template.njk index 6ebeaeb913..fe619a26d8 100644 --- a/packages/govuk-frontend/src/govuk/components/textarea/template.njk +++ b/packages/govuk-frontend/src/govuk/components/textarea/template.njk @@ -5,7 +5,9 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} {% set describedBy = params.describedBy if params.describedBy else "" %} -
+ +{#- Capture the HTML so we can indent separately to the + {%- if (params.spellcheck === false) or (params.spellcheck === true) %} spellcheck="{{ params.spellcheck }}"{% endif %} + {%- if params.disabled %} disabled{% endif %} + {%- if describedBy %} aria-describedby="{{ describedBy }}"{% endif %} + {%- if params.autocomplete %} autocomplete="{{ params.autocomplete }}"{% endif %} + {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>{{ params.value }}