v14.12.0
Before you upgrade, please take note of any breaking changes and deprecation notices which may affect your site. View the Upgrade Guide to see examples of how to address breaking changes.
New features ✨
- we have introduced a new
button
type - Button Text #935
<a class="button button--text" href="#">...</a>
<button class="button button--text" type="button">...</button>
<div class="grid">
<div class="grid__col-2"...</div>
<div class="grid__col-10"...</div>
</div>
- you can now set an individual Grid column size per
breakpoint
with the class.grid__col-[xs,sm,md,lg]-[1-12]
#926
<div class="grid">
<div class="grid__col-sm-6"...</div>
<div class="grid__col-sm-6"...</div>
</div>
<div class="grid grid--center">...</div>
.class {
@mixin grid-center;
}
- you can now test for
visual regressions
onpull requests
against apre-defined
selection ofcms
pages #958- list of pages are located in
/e2e/tests/regression/pages.json
snapshots
are saved to/e2e/tests/regression/snapshots
- update the
TEST_PREVIEW_ID
located in.env
to theid
of your pull-request. If your.env
file doesn't include it you can refer toenv.example
- list of pages are located in
`yarn test:snapshots:regression`
Please note: These tests should be run exclusively
on your local
machine to detect visual regressions
before merging your pull request
.
Bug fixes 🐛
- Tertiary Button background colour is now
transparent
#936 - updated visual snapshot
top
calculation to useparseFloat
for a more accurate precision #951 - simplified
icon
detection inside Notices #952
Deprecation notice⚠️
- the following classes have been deprecated and will be removed in a later version
- the following classes have been removed
- removed
arrow-right
andarrow-left
mixins #935
Other changes
- fixed
peerDependencies
by addingpostcss
topackage.json
#955 - updated Buttons to new
VID
#935 - updated Flash Message and Notices to new
VID
#938 - updated
--col-bg-info
to use--col-blue-light-50
#938 Global Footer
has been updated to use new grid column sizing #926- migrated all related
flash message
code fromassets/style-guide/notices/
➡️assets/style-guide/flash/
#937 - updated
.stylelintrc
to allow0 units
forcustom properties
#941 - grid
gap
increases to1.5rem
on--bp-desktop
and up #926 - grid now
resets
allmargin
andpadding
to0
. This enables allelements
that have defaultmargin
orpadding
to work. ie,ul
#926 - removed alternating Grid colours #926
grid-2-cols
,grid-3-cols
,grid-4-cols
mixins now includegrid
mixin #926- removed
grid__cell
from all stories that usegrid--cols-x
classes #926 grid-cols
mixin has been renamed togrid-breakpoint-cols
#926
@mixin grid-breakpoint-cols xs
grid-cell-span-2
,grid-cell-span-3
, andgrid-cell-span-4
mixins have been replaced withgrid-cols
#926
@mixin grid-cols 2;
@mixin grid-cols 3;
@mixin grid-cols 4;
- migrated tests from
e2e/tests/components/forms.spec.js
toe2e/tests/style-guide/forms.spec.js
&e2e/tests/layouts/standard.spec.js
#945 - updated
playwright
tov1.40.1
#949 - removed elements from snapshot hide list as component snapshots are done per component rather than per page now #953
[data-test="jump-navigation"]
[data-test="source-code"]
Documentation updates
- created new pages
- Form layout #945
- Flash Messages #937
- grid has been split into two pages #926
- Grid
- Simple Grid - if all you need is a grid with the same amount of columns
- updated Custom Icon Buttons #935
- migrated Hero Buttons to
cms
section #935 - migrated Component Forms to Forms #945