From 210e83adad430fdec0fc5faeb7bdd8557588cf42 Mon Sep 17 00:00:00 2001 From: Ben Pusey <141063311+Ben-Pusey-Bentley@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:38:02 -0400 Subject: [PATCH] Remove the `iui-anchor` mixin. (#1915) Co-authored-by: Mayank <9084735+mayank99@users.noreply.github.com> --- .changeset/green-cheetahs-rush.md | 11 ++++ .changeset/lemon-avocados-change.md | 34 +++++++++++ apps/css-workshop/pages/alert.html | 24 ++++++-- apps/css-workshop/pages/breadcrumbs.html | 6 +- apps/css-workshop/pages/footer.html | 5 ++ apps/css-workshop/pages/tag.html | 48 ++++++++-------- apps/css-workshop/pages/toast.html | 20 +++++-- packages/itwinui-css/src/alert/alert.scss | 7 --- packages/itwinui-css/src/anchor/anchor.scss | 52 ++++++++++++++++- packages/itwinui-css/src/anchor/mixins.scss | 57 ------------------- .../itwinui-css/src/breadcrumbs/mixins.scss | 3 - packages/itwinui-css/src/footer/footer.scss | 20 ++++++- packages/itwinui-css/src/tag/base.scss | 1 - packages/itwinui-css/src/tag/tag.scss | 6 -- packages/itwinui-css/src/toast/toast.scss | 6 -- .../itwinui-react/src/core/Alert/Alert.tsx | 11 ++-- .../src/core/Breadcrumbs/Breadcrumbs.tsx | 3 +- .../src/core/Footer/Footer.test.tsx | 2 +- .../itwinui-react/src/core/Footer/Footer.tsx | 9 ++- .../itwinui-react/src/core/Toast/Toast.tsx | 8 ++- 20 files changed, 201 insertions(+), 132 deletions(-) create mode 100644 .changeset/green-cheetahs-rush.md create mode 100644 .changeset/lemon-avocados-change.md delete mode 100644 packages/itwinui-css/src/anchor/mixins.scss diff --git a/.changeset/green-cheetahs-rush.md b/.changeset/green-cheetahs-rush.md new file mode 100644 index 00000000000..4a9a5b2f3cc --- /dev/null +++ b/.changeset/green-cheetahs-rush.md @@ -0,0 +1,11 @@ +--- +"@itwin/itwinui-css": minor +--- + +`iui-anchor` can now be styled with status colors using a new `data-iui-status` attribute. + +```html +... +``` + +Possible values include: `"positive"`, `"negative"`, `"informational"`, and `"warning"`. diff --git a/.changeset/lemon-avocados-change.md b/.changeset/lemon-avocados-change.md new file mode 100644 index 00000000000..7dde03fd077 --- /dev/null +++ b/.changeset/lemon-avocados-change.md @@ -0,0 +1,34 @@ +--- +"@itwin/itwinui-css": major +--- + +`iui-anchor` must now be explicitly added to `` elements, in addition to the previous `iui-alert-link`, `iui-breadcrumbs-content`, `iui-tag-basic`, and `iui-toast-anchor` classes. + +```diff +- ++ +``` + +```diff +- ++ +``` + +```diff +- ++ +``` + +```diff +- ++ +``` + +Additionally, all `` elements within `iui-legal-footer` elements will need the `iui-anchor` class. + +```diff +