From d080862e6d402a2e2daa20e0780400eba4c6fffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Wed, 27 Sep 2023 09:18:34 +0200 Subject: [PATCH] Drop dark stepped process --- scss/_stepped-process.scss | 12 ------ scss/_variables.scss | 9 ----- .../docs/5.3/components/stepped-process.md | 39 +++---------------- 3 files changed, 5 insertions(+), 55 deletions(-) diff --git a/scss/_stepped-process.scss b/scss/_stepped-process.scss index 54d70ea5b7..923341426b 100644 --- a/scss/_stepped-process.scss +++ b/scss/_stepped-process.scss @@ -143,15 +143,3 @@ flex: $stepped-process-max-items - 1; } } - -.stepped-process-dark { - // scss-docs-start stepped-process-dark-css-vars - --#{$prefix}stepped-process-item-bg: #{$step-item-dark-bg}; - --#{$prefix}stepped-process-item-active-bg: #{$step-item-dark-active-bg}; - --#{$prefix}stepped-process-item-next-bg: #{$step-item-dark-next-bg}; - --#{$prefix}stepped-process-item-drop-shadow: #{$step-item-dark-drop-shadow}; - --#{$prefix}stepped-process-link-color: #{$step-link-dark-color}; - --#{$prefix}stepped-process-link-active-color: #{$step-link-dark-active-color}; - --#{$prefix}stepped-process-link-next-color: #{$step-link-dark-next-color}; - // scss-docs-end stepped-process-dark-css-vars -} diff --git a/scss/_variables.scss b/scss/_variables.scss index 1a89c996d3..de458c4457 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -2242,15 +2242,6 @@ $step-link-marker-lg: counter(var(--bs-stepped-process-counter)) inspect $step-link-text-decoration: $link-decoration !default; // scss-docs-end stepped-process -// scss-docs-start stepped-process-dark-variables -$step-item-dark-bg: $white !default; -$step-item-dark-active-bg: $brand-orange !default; -$step-item-dark-next-bg: $gray-700 !default; -$step-item-dark-drop-shadow: drop-shadow($step-item-shadow-size 0 0 $black) #{"/* rtl:"} drop-shadow(calc(-1 * #{$step-item-shadow-size}) 0 0 $black) #{"*/"} !default; // stylelint-disable-line function-disallowed-list -$step-link-dark-color: $black !default; -$step-link-dark-active-color: $black !default; -$step-link-dark-next-color: $white !default; -// scss-docs-end stepped-process-dark-variables //// Sticker // scss-docs-start sticker diff --git a/site/content/docs/5.3/components/stepped-process.md b/site/content/docs/5.3/components/stepped-process.md index 205f2f7208..9665076a7a 100644 --- a/site/content/docs/5.3/components/stepped-process.md +++ b/site/content/docs/5.3/components/stepped-process.md @@ -47,32 +47,13 @@ Add `.active` to a `.stepped-process-item` to indicate the current step, alongsi ## Dark variant -{{< added-in "5.2.1" >}} +{{< deprecated-in "5.3.3" >}} -Add `.stepped-process-dark` to the `.stepped-process` for a dark variant. +{{< callout warning >}} +**Heads up!** Dark variants for components are deprecated in Boosted v5.3.3. They are replaced by our contextual dark mode. -{{< example class="bg-dark" >}} - -{{< /example >}} +Add `data-bs-theme="dark"` to the `.stepped-process` or any ancestor element to enable a component-specific color mode. [Learn more about our color modes]({{< docsref "/customize/color-modes" >}}). +{{< /callout >}} ## CSS @@ -84,16 +65,6 @@ As part of Boosted's evolving CSS variables approach, stepped processes now use {{< scss-docs name="stepped-process-css-vars" file="scss/_stepped-process.scss" >}} -Customization through CSS variables can be seen on the `.stepped-process-dark` modifier class where we override specific values without adding duplicate CSS selectors. - -{{< scss-docs name="stepped-process-dark-css-vars" file="scss/_stepped-process.scss" >}} - ### Sass variables -Variables for all stepped processes: - {{< scss-docs name="stepped-process" file="scss/_variables.scss" >}} - -Variables for the [dark stepped process](#dark-variant): - -{{< scss-docs name="stepped-process-dark-variables" file="scss/_variables.scss" >}}