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
buttontype - 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
breakpointwith 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 regressionsonpull requestsagainst apre-definedselection ofcmspages #958- list of pages are located in
/e2e/tests/regression/pages.json snapshotsare saved to/e2e/tests/regression/snapshots- update the
TEST_PREVIEW_IDlocated in.envto theidof your pull-request. If your.envfile 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
topcalculation to useparseFloatfor a more accurate precision #951 - simplified
icondetection 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-rightandarrow-leftmixins #935
Other changes
- fixed
peerDependenciesby addingpostcsstopackage.json#955 - updated Buttons to new
VID#935 - updated Flash Message and Notices to new
VID#938 - updated
--col-bg-infoto use--col-blue-light-50#938 Global Footerhas been updated to use new grid column sizing #926- migrated all related
flash messagecode fromassets/style-guide/notices/➡️assets/style-guide/flash/#937 - updated
.stylelintrcto allow0 unitsforcustom properties#941 - grid
gapincreases to1.5remon--bp-desktopand up #926 - grid now
resetsallmarginandpaddingto0. This enables allelementsthat have defaultmarginorpaddingto work. ie,ul#926 - removed alternating Grid colours #926
grid-2-cols,grid-3-cols,grid-4-colsmixins now includegridmixin #926- removed
grid__cellfrom all stories that usegrid--cols-xclasses #926 grid-colsmixin has been renamed togrid-breakpoint-cols#926
@mixin grid-breakpoint-cols xs
grid-cell-span-2,grid-cell-span-3, andgrid-cell-span-4mixins 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.jstoe2e/tests/style-guide/forms.spec.js&e2e/tests/layouts/standard.spec.js#945 - updated
playwrighttov1.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
cmssection #935 - migrated Component Forms to Forms #945