From 7ae79a3e7a8264b758eaca5c0df8561e0df0d038 Mon Sep 17 00:00:00 2001 From: literat Date: Wed, 19 Jul 2023 21:54:50 +0200 Subject: [PATCH] Docs(web-twig): Introduce migration guide for v2 refs #DS-800 --- packages/web-twig/MIGRATION-v2.md | 238 ++++++++++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100644 packages/web-twig/MIGRATION-v2.md 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 + +- `