v12.4.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 ✨
- Tags have been split out into their own component rather than being coupled tightly to Events #510
- Contact box now has a
data-type="alt"modifier allowing thedtandddelements to share the same line. #508
<div class="contact-box">
<dl>
<dt data-type="alt">...</dt>
<dd>...</dd>
</dl>
</div>
Deprecation notices ⚠️
- The class
headerlesshas been removed and is no longer required. The codebase has beenadjustedto allow the same functionality without the need for<div class="headerless"></div>in the markup. You can safely remove usage of this class in your codebase #517
Remove:
<div class="headerless"></div>
Bug fixes 🐛
Other changes
- Updated Contact box design #508
- Removed unknown functions from stylelint rules #515
- Removed css
@supportsas we only supportevergreenbrowsers now #516 - Updated
gen4version fromlatest➡️v1.2.4#514 - Improved build process #507 #513
- Updated webpack from
v2.5.1➡️v5.74.0 - Updated
webpack.config.jsto transpile alljscode. - Renamed all
.es6files to.js - Refactored from
CommonJS module system➡️ES Moduleswhere possible. - All
ES Modulesusenamedexports instead ofdefaultexport - Updated all
postcssplugins to thelatestversion - Removed deprecated
postcss-cssnextand replaced withpostcss-preset-env - Removed deprecated
extract-text-webpack-pluginand replaced withmini-css-extract-plugin&css-minimizer-webpack-plugin - Removed
uglify-es-webpack-pluginas webpackv5now handles that out of the box - Removed
locale-compare-polyfill&es6-promisepolyfills as they are no longer needed - Removed
browserslist&caniuse-dbfrompackage.jsonas they should be updated usingnpx update-browserslist-db@latest
- Updated webpack from
- Removed usage of
color,shade,color-mod, andalphaas were never made official and were removed inpostcss-preset-env - Created
e2etests to test component functionality, enabling removal of some unit tests #509 data-test="..."has now beenhiddenin the documentationsource code vieweras they're not required when implementing in CMS etc #509- Tidied up Grid
documentationexamples #511 - It is now easier for
non-developersto updatedocumentationpages by usingmarkdowninstead ofhtml#504 - Some improvements have been added to the importing of a component with
component.html#504- You can now
hidethesource code viewerby usingshowCode="false" - You can show the
gridon a component that uses Grid by usingshowGrid="true - For components that don't have a
max-widthset you can usecontainer="true"to emulate that functionality
- You can now