Skip to content

Commit 4bf5d7e

Browse files
committed
Rename deprecated variables replacements for status colors
brand-something doesn't exist anymore in boostrap. It's now accessible with theme-color(something).
1 parent 60041b7 commit 4bf5d7e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

backend/app/assets/stylesheets/spree/backend/globals/_deprecation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $output-solidus-deprecation-warnings: true !default;
1111
@if $output-solidus-deprecation-warnings == true {
1212
@if global-variable-exists($variable) {
1313
@warn "[Solidus] [Deprecation] `$#{$variable}` is deprecated and will be " +
14-
"removed in 3.0.0. Please use Bootstraps $#{$replacement} instead";
14+
"removed in 3.0.0. Please use Bootstraps #{$replacement} instead";
1515
}
1616
}
1717
}

backend/app/assets/stylesheets/spree/backend/globals/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ $color-tab-active-bg: $color-white !default;
6262
$color-tab-active-border: $color-white !default;
6363

6464
// Basic flash colors
65-
@include bs-deprecated-variable("color-success", "brand-success");
65+
@include bs-deprecated-variable("color-success", "theme-color(success)");
6666
$color-success: $color-green !default;
67-
@include bs-deprecated-variable("color-notice", "brand-warning");
67+
@include bs-deprecated-variable("color-notice", "theme-color(warning)");
6868
$color-notice: $color-yellow !default;
69-
@include bs-deprecated-variable("color-error", "brand-danger");
69+
@include bs-deprecated-variable("color-error", "theme-color(danger)");
7070
$color-error: $color-red !default;
7171

7272
// Breadcrumb custom variable

0 commit comments

Comments
 (0)