v1.4.0
Targets GDS Frontend v4.7.0.
New features
Customize the text prepended to <title>
for pages that have errors
By default 'Error: ' is prepended to the <title>
element for pages that have errors. A new attribute - gfa-error-prefix
- has been added to TitleTagHelper
that allows for overriding this e.g. for localization purposes.
Inference of pages with errors is more consistent
Previously a page was deemed to have errors if there were errors inside ModelState
. That logic is now amended to look for the presence of an error summary component instead. A page can be explicitly set to have errors by calling ViewData.SetPageHasErrors(true)
.
Tag helpers can have their content overridden by other tag helpers
Tag helpers outside of this library can now modify the content of a govuk-*
tag helper and that change will be reflected in the generated output (it was previously ignored). Tag helpers that modify content need to have an Order
less than 0
for this to work.
id
attribute on buttons
<govuk-button>
and <govuk-button-link>
now have an id
attribute for setting the id
attribute on the generated button.
disabled
attribute on <govuk-file-upload>
<govuk-file-upload>
now has a disabled
attribute which sets the disabled
property on the generated <input>
.