v8
Migration
v8 contains a couple of breaking changes. As a migration process, you can simply search and replace:
- Find
black-30
and replace it withblack-20
. - Removed the undocumented icons package
dnb-ui-icons-archive
. - Find these icons and replace them:
search
toloupe
settings
tocog
print
toprinter
pencil
toedit
view_off
tohide
file
todocument
file_add
todocument_add
contract
todocument_contract
link_out
tolaunch
logout
tolog_out
login
tolog_in
without_bankid
topin_code
bankid_on_mobile
tobankid_mobile
bankid_with_qr
tobankid_qr
check_alt_01
removed (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
figure
HTML got included in the CSS reset with amargin: 0
. - Add TypeScript type declarations for component PropTypes.
- Add pure
trigger
prop to Modal & Drawer.
Install
To upgrade to v8 with NPM, use:
$ npm i dnb-ui-lib@8
December, 15. 2020