diff --git a/packages/web-twig/MIGRATION-v2.md b/packages/web-twig/MIGRATION-v2.md new file mode 100644 index 0000000000..ee533d191a --- /dev/null +++ b/packages/web-twig/MIGRATION-v2.md @@ -0,0 +1,238 @@ +# Migration Guide + +Introducing version 2 of the _spirit-web-twig_ package + +> Please follow these steps to safely upgrade your Design System to Spirit Design System v1 components. + +## Remove modal body padding feature class [#DS-863](https://jira.lmc.cz/browse/DS-863) ([ba8b949](https://github.com/lmc-eu/spirit-design-system/commit/ba8b949)) + +Remove feature class `.spirit-v1-modal-body-padding`, if used. +No other actions are required. + +## Add `spirit` infix to data attr names in components [#DS-585](https://jira.lmc.cz/browse/DS-585) ([d1f6215](https://github.com/lmc-eu/spirit-design-system/commit/d1f6215)) + +Add `spirit` infix to all affected APIs. + +- `data-toggle="collapse"` → `data-spirit-toggle="collapse"` + +You have to modify these component APIs or usages: + +- Collapse +- Dropdown +- FileUploader +- Header +- Modal +- ScrollView +- Tooltip + +To make everything work, you have to make these changes: + +### Collapse + +- `