Skip to content

Releases: x-govuk/govuk-frontend-aspnetcore

v3.4.1

22 Oct 12:26

Choose a tag to compare

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

17 Oct 14:23

Choose a tag to compare

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

26 Sep 09:23

Choose a tag to compare

Targets GOV.UK Frontend v5.12.0.

v3.2.3

19 Jul 11:06

Choose a tag to compare

Targets GOV.UK Frontend v5.11.1.

Fixes

Don't add 'Error: ' to the <title> element inside the header <svg>.

v3.2.2

26 Jun 11:58

Choose a tag to compare

Further improvements for build-time GOV.UK Frontend NPM package restore.

v3.2.1

26 Jun 11:22

Choose a tag to compare

Fixes

Fixes GOV.UK Frontend NPM package restore when using Visual Studio.

v3.2.0

24 Jun 18:01

Choose a tag to compare

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

19 Jun 13:23

Choose a tag to compare

Fixes

Fixes asset path in _GovUkPageTemplate when Rebrand is true.

v3.1.1

16 Jun 10:53

Choose a tag to compare

Fixes

Fixes rendering tag helpers that have a <table> element in their content.

v3.1.0

07 Jun 13:04

Choose a tag to compare

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.