Releases: x-govuk/govuk-frontend-aspnetcore
v3.4.1
New features
Password input
Tag helpers have been added to create a password input component.
readonly attribute
A readonly attribute has been added to the <govuk-character-count>, <govuk-date-input>, <govuk-input> and <govuk-textarea> tag helpers.
Fixes
Fix <govuk-date-input-hint> when used inside a <govuk-date-input-fieldset>.
v3.4.0
Targets GOV.UK Frontend v5.13.0.
New features
<govuk-date-input>
The prefix used for generated error messages can now be specified by an error-message-prefix attribute on <govuk-date-input>
instead of using [DateInput(ErrorMessagePrefix = "...")] on the model property.
<govuk-input>
<govuk-input-before-input> and <govuk-input-after-input> tag helpers have been added that allow providing content to render before and after the generated <input> element for text input components, respectively.
Fixes
Fix adding additional classes to <govuk-pagination>.
v3.3.0
v3.2.3
v3.2.2
v3.2.1
v3.2.0
Targets GOV.UK Frontend v5.11.0.
Asset hosting changes
An additional call is now required to add the middleware that hosts the govuk-frontend assets.
In your Program.cs file, add the following line after var app = builder.Build();:
app.UseGovUkFrontend();A new mechanism is available to copy assets from the govuk-frontend package into your application.
This is particularly useful for applications that are using SASS and want to reference scss files from the govuk-frontend package.
See the SASS sample for an example of how to use this.
Tag helper changes
<govuk-service-navigation-nav> tag helper
A collapse-navigation-on-mobile attribute has been added to control whether the service navigation is collapsed on mobile devices.
<govuk-service-navigation-nav-item> tag helper
If not specified, the current attribute will be deduced by comparing the href attribute to the current request path.
v3.1.2
v3.1.1
v3.1.0
Targets GOV.UK Frontend v5.10.2.
New features
Rebrand support
The _GovUkPageTemplate view and tag helpers for the GOV.UK header and footer components now support the GOV.UK rebrand.
New tag helpers
Tag helpers to create
a GOV.UK header component,
a GOV.UK footer component and
a service navigation component
have been added.
FrontendPackageHostingOptions
The CompiledContentPath and StaticAssetsContentPath properties on GovUkFrontendOptions have been deprecated and replaced by FrontendPackageHostingOptions.
Fixes
DefaultFileUploadJavaScriptEnhancements
Setting the DefaultFileUploadJavaScriptEnhancements to true now actually does something.