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.
1.1.0 (feature release)
🆕 New features:
Add
govuk-visually-hidden-focusable
classAdds
.govuk-visually-hidden-focusable
and deprecates.govuk-visually-hidden-focussable
in order to fix the typo in the class name. Please consider updating your code as the next major release will remove the deprecated class.(PR #859)
Allow panel component title heading to be customisable.
You can now specify a heading level by providing
headingLevel: <number>
parameter. Default is2
.(PR #853)
Update date input component
Allow the
name
andid
attributes to be passed individually for each input item.Rely on
classes
instead of item names to set the width of input items.Add default (day, month, year) date input items if no items are being specified
(PR #857)
The typography scale can now be converted from pixels to rem automatically,
with pixels also being provided as a fallback for older browsers.
This feature is disabled by default - in order to use it you will need to set
$govuk-typography-use-rem: true
and ensure that$govuk-root-font-size
isset to the effective size of your root (html) element. For new projects, this
should be the default of 16px so you don't have to do anything. For projects
that use alphagov/govuk_template this should be 10px.
The intention is to enable this by default in the next major version:
Enable rem-based typography by default #868
(PR #858)
🔧 Fixes:
Remove mistakenly applied 5px bottom margin from radio and checkbox
labels.
(PR #883)
Apply
display:block
to.govuk-main-wrapper
In IE11
main
element is set todisplay:inline
so paddingand margins aren't applied.
(PR #863))
Line-heights are now converted from pixels to relative 'unit-less' values
in order to prevent issues when resizing text in the browser.
(PR #837 and
PR #848)
Add bottom margin to Tabs component
All components (or outer layer components) have a bottom margin
applied to them so spacing feels automatic.
(PR #841)
Update Crown copyright link
Update the Crown copyright link on the National Archives so
we don't send users on an unnecessary redirect.
(PR #824)
Fixes radio and checkbox labels extending full width of page
(PR #821)
Prevent the exclamation mark in the warning text component from being
selectable, which also excludes it when it is copied as part of a wider body
of text
(PR #856)
Add customised colours handling for warning text
By adding a border to this component, when a user customises their colour settings
they will still see a circle even if the background is removed.
(PR #852)
Fixes a bug where the phase banner incorrectly uses a font-size of 19px when
global styles are enabled
(PR #877)
Add outlines to Radios and Checkboxes for customised colour users
Now when a user customises their colours,
they should see a focus state on both Radios and Checkboxes.
(PR #854)
Add outline to tag for customised colour users
Now when a user customises their colours,
the tag component still keeps it's meaning.
(PR #855)
Define size of table in
px
rather thanem
This brings the styling of tables inline with rest of GOV.UK Frontend which no longer uses
em
for measurements.This change very slightly increases the padding of table cells on mobile viewport as the use of
em
meant the font size set in the table was used to calculate padding.padding-top
andpadding-bottom
of cells increase by 1.5px respectively which very slightly increases the height of the table on mobile.In the unlikely case that your UI has a dependency on tables being a certain fixed height of mobile viewport, this change might affect you.
(PR #845)
Fix header component's reliance on markup whitespace
We have had issues where the header component can render incorrectly if the markup contains whitespace,
for example if it has been pretty printed.
This changes the header component to use float based columns similar to how the grid system works.
(PR Fix header component's reliance on markup whitespace #884)
🏠 Internal:
Fix Design System url in package READMEs and review app
(PR #812)
Update back-link example to show default usage doesn't need
text
parameter(PR #819)
Lowercase component names
(PR #822)
Tidy up some package.json fields to help contributors and users
(PR #827)
Fix failing Heroku app with Node 10.5.0
Revert to pinning node version in package json
(PR #833)
Format YAML and Nunjucks consistently
(PR #830)