Skip to content

Commit

Permalink
Merge pull request #984 from nhsuk/remove-date-pattern
Browse files Browse the repository at this point in the history
Removing pattern from date input to follow govuk-frontend
  • Loading branch information
anandamaryon1 authored Jul 11, 2024
2 parents 8c22734 + 11be046 commit ab64725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:wrench: **Fixes**

- Change "Contact us" in the footer link examples to "Give us feedback" ([PR 972](https://github.com/nhsuk/nhsuk-frontend/pull/972))
- Remove the pattern from the date input component

:new: **New features**

Expand Down
2 changes: 1 addition & 1 deletion packages/components/date-input/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
value: item.value,
inputmode: item.inputmode if item.inputmode else "numeric",
autocomplete: item.autocomplete,
pattern: item.pattern if item.pattern else "[0-9]*",
pattern: item.pattern,
attributes: item.attributes
}) | indent(6) | trim }}
</div>
Expand Down

0 comments on commit ab64725

Please sign in to comment.