From d57affcd681103a31a7581541fc52c94e48a5fef Mon Sep 17 00:00:00 2001 From: Mikael Arvola Date: Fri, 30 Aug 2024 14:34:24 -0500 Subject: [PATCH] Add upgrade process to README. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1fcfadf..76ed95d 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,17 @@ text. There are a few attributes to control the component: - **Centered text** can be harder to read, so avoid using longer text when center aligning. - Make sure links and buttons are descriptive, using `ilw-sr-only` if needed to add context. + +## Upgrade Process + +When upgrading from the v2 toolkit component, the following changes are needed: + +- Rename all `il-call-to-action` to `ilw-call-to-action`. +- Replace uses of the theme classes with an attribute: + - `class="il-theme-gray"` -> `theme="gray"` + - `class="il-theme-blue"` -> `theme="blue"` + - `class="il-theme-white"` -> `theme="white"` + - `class="il-theme-blue-gradient"` -> `theme="blue-gradient"` +- Replace uses of the alignment classes with an attribute: + - `class="il-align-left"` -> `align="left"` + - `class="il-align-center"` -> `align="center"`