v14.7.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 added some new colour variations for
Traditional Heritage (Blue)#867--col-heritage-75- 75%--col-heritage-50- 50%--col-heritage-25- 25%
- the following Icons have been added to the icon set #856
arrow-leftarrow-left-outlinearrow-rightarrow-right-outlinecheck-outlinecheck-specialclipboardcollapsedropdownedit-calendarexpandeyefavouritefilterhandshakemicrophonenewspaperpausepause-outlineplayplay-outlinerestsort-upsort-downstartwarning
- the
sizeof the Icon can now be defined by thedata-sizeattribute #856xssmmdlgxlxxl
<span data-icon="..." data-size="xs">...</span>
<span data-icon="..." data-label-size="lg">...</span>
<span data-icon="..." data-hide-label="true">...</span>
<span data-icon="..." data-fill="true">...</span>
- new
iconcssmixin. It accepts two properties: #856icon- the name of the icon to usesize(optional) - it accepts the same sizes as thedata-sizeattribute
/* Icon only */
@mixin icon chevron-right
/* Icon and size */
@mixin icon chevron-right, sm
- new icon
cssvariables #856--icon-size-xs--icon-size-sm--icon-size-md--icon-size-lg--icon-size-xl--icon-size-xxl--icon-width--icon-aspect-ratio--icon-gap
- installed
svgo-loaderto optimise and removeattributesfromsvgicons #856
Bug fixes 🐛
- icon
labelsin Article Footer are now hidden correctly #870 - fixed an issue where
yarn --productionneeded to be set tofalseto install correctdependanciesand to letwebpackcompile #872 - fixed an issue where all
headersinheritedextrapadding when the.floatingclass was present, instead of only thefirstheader #839 - pages containing the
gen4mega menu and the.floatingclass now have the correct padding set on thefirstheader #839
Deprecation notice⚠️
- the following classes have been
deprecatedand will be removed in a later version:- Card Icons - #856
.card__image-icon
- Icons - #856
.small- usedata-size="md"instead.large- usedata-size="xxl"instead.fill- usedata-fill="true"instead.icon--hide-label- usedata-hide-label="true"instead
.video-thumband.audio-thumb#877
- Card Icons - #856
Other changes
- updated Icons to the new
VID#856 - updated Colour Palette #867 #877
--col-maroon-75➡️rgb(150 90 120)--col-maroon-50➡️rgb(185 145 165)--col-maroon-25➡️rgb(220 200 210)--col-green-dark-25➡️rgb(202 208 198)--col-outline-success➡️var(--col-green-dark-100)
- updated all
componentsto use the newicons#856 #877 - updated
rawuses ofsvgto<span data-icon="">...</span>#856 - updated
assets/style-guide/icons/index.jsto convert.smalland.large➡️data-sizeand.icon--hide-label➡️data-hide-label#856 - updated
assets/webpack.config.jstooptimisesvg files usingsvgo-loader#856 - ported over Header
cmschanges #839 - added in missing
e2etests for CMS pages #871
Documentation updates
- created CMS pages to document raw use of
<svg>until the components have been updated in thecms#856 - created CMS Icons to document deprecated
.small,.large,.fill, and.icon--hide-labelclasses #856 - updated Icons to show new
data-size,data-label-size,data-hide-label, anddata-fillattributes #856 #876 - created
data-align-gridhelper to vertically center align items in the grid #856
<div class="grid" data-align-grid="center"></div>