Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.66 KB

v0.3.x-to-v0.4.x.md

File metadata and controls

36 lines (28 loc) · 1.66 KB

Migration Beta (0.3.x) ➡ Beta (0.4.x)

Icons

We refactored our icons which might add some breaking changes to current projects: https://marketingportal.extranet.deutschebahn.com/marketingportal/Design-Anwendungen/db-ux-design-system/support/migration-guides/v0-3-0

Migration table

old new
swap_vertical arrows_vertical
swap_horizontal arrows_horizontal
reload circular_arrows
volume_off volume_silent
law paragraph_mark
user person
users persons
wc_men toilet_men
wc_women toilet_women
wc toilets
filter sliders_horizontal
warning_triangle exclamation_mark_triangle
visible eye
visibility_disabled eye_disabled
flip_horizontal arrows_horizontal
flip_vertical arrows_vertical

Automate migration via CLI

We provide a cli tool to auto migrate your source code. Use this command in your repository:

npx @db-ui/foundations@v0.4 migration --type=icon --src=./src

Please check the changes made in your codebase afterwards, as this is mainly a simple search & replace and there might be unexpected changes of similar wordings to our icon names for any other methods, or further code occurrences that don't even refer to icons.