v8
Migration
v8 contains a couple of breaking changes. As a migration process, you can simply search and replace:
- Find
black-30and replace it withblack-20. - Removed the undocumented icons package
dnb-ui-icons-archive. - Find these icons and replace them:
searchtoloupesettingstocogprinttoprinterpenciltoeditview_offtohidefiletodocumentfile_addtodocument_addcontracttodocument_contractlink_outtolaunchlogouttolog_outlogintolog_inwithout_bankidtopin_codebankid_on_mobiletobankid_mobilebankid_with_qrtobankid_qrcheck_alt_01removed (use e.g.check)
Changes
- Potential Breaking: If you have used a CSS var (custom property) (e.g.
var(--input-text-color)) to change a components color – then you would have to use the CSS color vars directly on the element (var(--color-sea-green)). - The
figureHTML got included in the CSS reset with amargin: 0. - Add TypeScript type declarations for component PropTypes.
- Add pure
triggerproperty to Modal & Drawer.
Install
To upgrade to v8 with NPM, use:
$ npm i dnb-ui-lib@8
December, 15. 2020