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.
0.0.29-alpha (Breaking release)
Breaking changes:
Restructure project to enable it to be published as a single package
The new project structure matches our ITCSS inspired layers and is published as a single package as
@govuk-frontend/frontend
.You will need to:
@govuk-frontend/frontend
If you're importing everything at once:
If you're importing individual components:
See the main README for up-to-date installation instructions.
(PR #680)
Error Messages and Hints have been moved out Label and Fieldset components.
They are no longer nested within the label or legend.
They are associated with the input or with the fieldset using aria-describedby.
Hint has been made into a new component similar to Error Message.
If you're using markup, you will need to update the old markup:
With the new markup:
If you're using macros:
The fieldset macro no longer accepts
legendHintText
orlegendHintHtml
-these parameters are now passed to the hint component which accepts
text
orhtml
. The date-input, checkboxes and radios components have been updated touse the new Hint component.
The label macro no longer accepts
hintText
orhintHtml
- these parametersare now passed to the hint component which accepts
text
orhtml
. Thefile-upload, input, select and textarea components have been updated to use the
new Hint component.
For example, this example macro call for a File Upload component:
would now be:
For more examples of the new markup and Nunjucks macros see the GOV.UK Design System Question Pages pattern
(PR #681)
The date-input component now sets an explicit
group
role on the fieldsetto force JAWS 18 to announce the error message and hint.
(PR #681)
The label component macro now accepts an
isPageHeading
argument which determineswhether the label itself should be wrapped in an h1:
The
.govuk-label-wrapper
removes the margins from the heading so that thepresence of the
h1
has no effect on the styling of the label.(PR #684)
Added new modifier classes for labels to allow you to create a label that
visually corresponds to the equivalent heading class (for example, a
.govuk-label--xl
will have the same font size and weight as a.govuk-heading-xl
)(PR #684)
The arguments for a fieldset's legend have been rolled up into an object. For
example, the following macro call:
would now be:
The
legend
object can also accept newclasses
andarguments
Components that use the fieldset component have been updated to reflect these
changes.
(PR #684)
The fieldset component has a new parameter legend.isPageHeading, which defines
whether the legend text should be wrapped in an h1:
The
.govuk-fieldset__heading
class ensures that the<h1>
inherits itsproperties from the legend, so that the presence of the
h1
has no effect onits styling.
(PR #684)
Added new modifier classes for legends to allow you to create a legend that
visually corresponds to the equivalent heading class (for example, a
.govuk-fieldset__legend--xl
will have the same font size and weight as a.govuk-heading-xl
)(PR #684)
Remove -c -o -h layer prefixes
(PR #644)
In user research and in feedback from Private Beta partners we
learned that users didn't really understand what -o, -c and -h prefixes
stand for or why they're useful.
They also introduced additional cognitive load when composing classes,
having to remember which suffix the classname contains.
If you're using markup, you will need to:
For example, change:
Into:
Simplify grid syntax and introduce grid-row and column mixins.
Based on user research feedback we have simplified the grid classes
to a more consise naming structure.
You will need to:
For example, change:
Into:
We have also introduced two mixins
to help generate additional or custom grid styles and widths,
see original pull request for usage.
(PR #665)
Fixes:
Remove redundant font-family declaration from the button component – this will
also fix an issue where the button uses New Transport when printed instead of
falling back to the print stack as expected.
(PR #650)
Reinstate focus outline for radios and checkboxes on IE8
(PR #670)
Fix section break styles when used with GOV.UK Elements
(PR #682)
Remove
-webkit-tap-highlight-color
from links (PR #692)Remove normalize from /dist builds
(PR #699)
New features:
We're now using ES6 Modules and rollup to distribute our JavaScript. (PR #652)
Checkboxes and Radios conditional reveal
(PR #616)
Vendor-in SassMQ functionality, write tests and remove external dependency
(PR #657)
Focus Error Summary on window load
(PR #671)
Opt-in Global
<a>
and<p>
styles(PR #658)
Global styles are not included by default.
This is to avoid the risk of these globals conflicting with any pre-existing globals, for example in GOV.UK Elements or GOV.UK Template.
Hovever, we do include them in the GOV.UK Prototype Kit to speed up prototyping.
To include global styles, you can set
$govuk-global-styles
variable totrue
.Internal:
(PR #690)
app.css
in conditional comments in review app layout (PR #653)(PR #663)
dist/
andpackages/
copy task(PR #662)
build:packages
task(PR #669)
(PR #675)
dist/
folder(PR #673)
output CSS.