Update dependency govuk-frontend to v6.3.0#114
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
7d7254e to
000fe9a
Compare
000fe9a to
518472b
Compare
518472b to
230edf1
Compare
230edf1 to
8f94fb0
Compare
8f94fb0 to
0ddd5f3
Compare
c70811e to
a970061
Compare
4057fe7 to
c771d74
Compare
d3b96b7 to
9c6a564
Compare
25014ac to
88dcfd3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.2.0→6.3.0Release Notes
alphagov/govuk-frontend (govuk-frontend)
v6.3.0Compare Source
To install this version with npm, run
npm install govuk-frontend@6.3.0. You can also find more information about how to stay up to date in our documentation.New features
Use the Generic header component in services not on the GOV.UK website
We've added the Generic header component for services that are not part of the GOV.UK proposition but would still benefit from using GOV.UK Frontend to build their service.
The Generic header component is a version of the GOV.UK header component that you can customise to meet the needs of your service. This includes:
This was added in pull request #7061: Add Generic Header component.
You can now pass
day,month,year,errorandvaluesoptions to the Date input componentWe've updated the Date input component to add the following Nunjucks options:
day,monthandyearoptions to customise individual itemserrorboolean option to set the error state on individual itemsvaluesoption to set individual item values using a single objectFor consistency with other components, the Date input component's error state is now set automatically when
errorMessageis provided.For example, it is no longer necessary to set the
"govuk-input--error"class on every item:{{ govukDateInput({ fieldset: { legend: { text: "What is your date of birth?" } }, errorMessage: { text: "Enter your date of birth" - }, - items: [ - { - name: "day", - label: "Day", - classes: "govuk-input--width-2 govuk-input--error" - }, - { - name: "month", - label: "Month", - classes: "govuk-input--width-2 govuk-input--error" - }, - { - name: "year", - label: "Year", - classes: "govuk-input--width-4 govuk-input--error" - } - ] + } }) }}If only one field has an error, use the new
day,monthoryearoptions to seterror: truefor that field only:{{ govukDateInput({ fieldset: { legend: { text: "What is your date of birth?" } }, errorMessage: { text: "Date of birth must include a year" }, - items: [ - { - name: "day", - label: "Day", - classes: "govuk-input--width-2" - }, - { - name: "month", - label: "Month", - classes: "govuk-input--width-2" - }, - { - name: "year", - label: "Year", - classes: "govuk-input--width-4 govuk-input--error" - } - ] + year: { + error: true + } }) }}When using the GOV.UK Prototype Kit, given the following
dataobject:{ "dob-day": "31", "dob-month": "3", "dob-year": "1980" }You can now pass in
values: datato automatically set item values:We made this change in pull request #6971: Add date input
day,month,yearandvaluesoptions.Fixes
We've made fixes to GOV.UK Frontend in the following pull requests:
Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.