Skip to content

Commit

Permalink
Merge pull request #1086 from danboscaro/feature/add-error-message-at…
Browse files Browse the repository at this point in the history
…tributes-to-components

add error message attributes to components
  • Loading branch information
NickColley authored Dec 11, 2018
2 parents 94fce28 + 5311acf commit 8b31275
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

([PR #1078](https://github.com/alphagov/govuk-frontend/pull/1078))

- Add error message attributes to all components

([PR #1086](https://github.com/alphagov/govuk-frontend/pull/1086))

## 2.4.0 (Feature release)

🆕 New features:
Expand Down
1 change: 1 addition & 0 deletions src/components/checkboxes/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/date-input/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/file-upload/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/input/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/radios/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/select/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down
1 change: 1 addition & 0 deletions src/components/textarea/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
{{ govukErrorMessage({
id: errorId,
classes: params.errorMessage.classes,
attributes: params.errorMessage.attributes,
html: params.errorMessage.html,
text: params.errorMessage.text
}) | indent(2) | trim }}
Expand Down

0 comments on commit 8b31275

Please sign in to comment.