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.
2.1.0 (Feature release)
🆕 New features:
Allow additional 'meta' content in the footer
You can now pass additional 'meta' content (as
meta.html
ormeta.text
) which will appear below any meta links, above the OGL license. This is ideal for, for example, the 'Built by Department Name' colophon.(PR #990)
Allow attributes to be added to some child items in header, footer, breadcrumbs, tabs and error-summary components
You can now pass additional attributes to links in header, footer, breadcrumbs, tabs and error-summary components
(PR #993)
Fix issue with conditional form content and inline form controls
When inline variant of form controls is used with conditional content, we force it to display block.
This is to avoid breaking and confusing styling as it is a combination we don't recommend.
(PR #970)
Add component options (arguments) as
macro-options.json
topackage
We want to be able to expose these options to GOV.UK Design System. This change includes them as
yaml
insrc/components
and adds a build step to transform them toJSON
and copy them topackage/components
. It also adds a test to check if the copied files are valid JSON and contain expected attributes.(PR #998)
🔧 Fixes:
Fix mobile menu button submitting parent forms
The menu
<button>
didn’t have an explicittype
set, which meant that itdefaulted to
type=“submit”
.This meant that if the header was inside a form (as it is in the Design System examples, but we can imagine other scenarios where this would be the case) clicking the menu button would submit the form.
In most cases this would also cause the page to reload, which closes the menu.
(PR #994)
Fix flash of unstyled content in tabs component
(PR #1000)
Add 48px favicon
Microsoft recommends including at least a 48x48px favicon.
(PR #986)
Update
browsersList
inpackage.json
to reflect our supported browsersbrowsersList
is used by PostCSS in our current build to determine which browser prefixes or rules to generate for the built CSS files. This PR adds rules to specify that the browsers in our browser matrix should always be prefixed for. Additionally, any browser with more than 0.1% of the global market share is prefixed for.In terms of changes to our built CSS, this means that
-webkit-box-sizing
and-webkit-box-shadow
prefixes will be removed - neither of these prefixes are required by desktop Safari 5.1 or later so this seems a fairly safe change to make.(PR #1002)