From 37bc19c2577e33caa7be515276379e95fffaa55f Mon Sep 17 00:00:00 2001 From: Lea Date: Tue, 17 Dec 2024 15:51:38 +0100 Subject: [PATCH 01/18] chore(documentation, styles): remove deprecated bg classes (#4201) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com> --- .changeset/poor-jars-call.md | 7 ++ .../consumer-app/src/app/app.component.html | 2 +- .../projects/consumer-app/src/styles.scss | 2 +- packages/components/cypress/e2e/tag.cy.ts | 2 +- .../components/post-popover/post-popover.scss | 3 - .../post-popovercontainer.scss | 5 +- .../components/post-tooltip/post-tooltip.scss | 5 -- .../.storybook/blocks/footer.tsx | 2 +- .../.storybook/blocks/header.tsx | 2 +- .../.storybook/blocks/layout/layout.scss | 5 ++ .../.storybook/styles/manager.scss | 37 +------- .../cypress/e2e/components/hint.cy.ts | 2 +- .../src/shared/decorators/dark-background.ts | 10 --- .../components/avatar/avatar.stories.ts | 6 +- .../stories/components/badge/badge.docs.mdx | 1 - .../stories/components/badge/badge.stories.ts | 13 +-- .../stories/components/button/button.docs.mdx | 6 -- .../components/button/button.stories.ts | 10 --- .../card-button/card-button.stories.ts | 16 ++-- .../card-control/card-control.docs.mdx | 21 +---- .../standard-html/card-control.stories.ts | 40 +-------- .../web-component/card-control.stories.ts | 33 +------- .../card-product/card-product.stories.ts | 22 ++--- .../dialog/dialog.snapshot.stories.ts | 2 +- .../components/dialog/dialog.stories.ts | 13 ++- .../forms/hint/hint.snapshot.stories.ts | 16 +--- .../intranet-header-postweb.sample.html | 4 +- ...ntranet-header-side-navigation.sample.html | 4 +- .../notification-overlay.sample.html | 2 +- .../components/popover/popover.stories.ts | 18 ++-- .../subnavigation/subnavigation.docs.mdx | 22 +++-- .../subnavigation/subnavigation.module.scss | 13 --- .../subnavigation.snapshot.stories.ts | 3 +- .../subnavigation/subnavigation.stories.ts | 23 ++--- .../components/tooltip/tooltip.stories.ts | 28 +++---- .../stories/foundations/icons/icon.docs.mdx | 6 +- .../stories/foundations/icons/icon.stories.ts | 10 +-- .../foundations/icons/icon.styles.scss | 5 ++ .../src/stories/introduction.docs.mdx | 31 +++++-- .../src/stories/introduction.styles.scss | 9 +- .../internet-header/header.stories.ts | 2 +- .../error-page/error-page.stories.ts | 2 +- .../background/background.blocks.tsx | 20 ----- .../utilities/background/background.docs.mdx | 78 ----------------- .../background/background.module.scss | 22 ----- .../background/background.stories.ts | 49 ----------- .../background/background.styles.scss | 84 ------------------- .../utilities/display/display.docs.mdx | 1 + .../utilities/display/display.stories.ts | 5 +- .../utilities/display/display.styles.scss | 6 ++ .../utilities/elevation/elevation.stories.ts | 2 +- .../stories/utilities/flex/flex.blocks.tsx | 58 ++++++------- .../utilities/flex/flex.snapshot.stories.ts | 62 +++++++------- .../stories/utilities/flex/flex.stories.ts | 73 ++++++++-------- .../stories/utilities/flex/flex.styles.scss | 25 ++++-- .../utilities/overflow/overflow.stories.ts | 2 +- .../utilities/overflow/overflow.styles.scss | 4 + .../position/position.snapshot.stories.ts | 18 ++-- .../utilities/position/position.stories.ts | 17 ++-- .../utilities/position/position.styles.scss | 38 +++++++-- .../src/stories/utilities/text/text.docs.mdx | 6 +- .../stories/utilities/text/text.stories.ts | 6 +- .../stories/utilities/text/text.styles.scss | 5 ++ .../sidebar-with-searchbar.component.html | 4 +- .../samples/sidebar/sidebar.component.html | 4 +- packages/nextjs-integration/src/app/page.tsx | 12 +-- .../src/app/app.component.html | 14 ---- .../src/app/app.component.ts | 1 - packages/styles/src/components/badge.scss | 8 ++ .../styles/src/components/datepicker.scss | 6 +- .../components/intranet-header/_sidebar.scss | 2 + .../src/components/tabs/_tab-title.scss | 42 ---------- .../src/components/tabs/_tabs-wrapper.scss | 9 -- .../styles/src/utilities/temp/_legacy.scss | 7 -- 74 files changed, 351 insertions(+), 804 deletions(-) create mode 100644 .changeset/poor-jars-call.md delete mode 100644 packages/documentation/src/shared/decorators/dark-background.ts delete mode 100644 packages/documentation/src/stories/components/subnavigation/subnavigation.module.scss create mode 100644 packages/documentation/src/stories/foundations/icons/icon.styles.scss delete mode 100644 packages/documentation/src/stories/utilities/background/background.blocks.tsx delete mode 100644 packages/documentation/src/stories/utilities/background/background.docs.mdx delete mode 100644 packages/documentation/src/stories/utilities/background/background.module.scss delete mode 100644 packages/documentation/src/stories/utilities/background/background.stories.ts delete mode 100644 packages/documentation/src/stories/utilities/background/background.styles.scss create mode 100644 packages/documentation/src/stories/utilities/text/text.styles.scss diff --git a/.changeset/poor-jars-call.md b/.changeset/poor-jars-call.md new file mode 100644 index 0000000000..3ff6c4d4d9 --- /dev/null +++ b/.changeset/poor-jars-call.md @@ -0,0 +1,7 @@ +--- +'@swisspost/design-system-documentation': major +'@swisspost/design-system-components': major +'@swisspost/design-system-styles': major +--- + +Removed `.bg-` classes to define background color of elements. diff --git a/packages/components-angular/projects/consumer-app/src/app/app.component.html b/packages/components-angular/projects/consumer-app/src/app/app.component.html index b129ac5352..81d4583196 100644 --- a/packages/components-angular/projects/consumer-app/src/app/app.component.html +++ b/packages/components-angular/projects/consumer-app/src/app/app.component.html @@ -1,4 +1,4 @@ -
+