Skip to content

Commit 260f589

Browse files
committed
fix: themes don't support $text-muted color
1 parent 3200a0a commit 260f589

File tree

6 files changed

+30
-5
lines changed

6 files changed

+30
-5
lines changed

scss/_breadcrumb-menu.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
.btn {
1919
padding: 0 $input-btn-padding-x;
20-
color: $text-muted;
2120
vertical-align: top;
2221
border: 0;
2322

@@ -26,6 +25,9 @@
2625
color: $body-color;
2726
background: transparent;
2827
}
28+
@include themes($typography-theme-map, $create: parent) {
29+
color: themes-get-value("text-muted");
30+
}
2931
}
3032

3133
.show {

scss/_breadcrumb.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232

3333
&::before {
3434
display: inline-block; // Suppress underlining of the separator in modern browsers
35-
color: $breadcrumb-divider-color;
35+
@include themes($breadcrumb-theme-map, $create: parent) {
36+
color: themes-get-value("breadcrumb-divider-color");
37+
}
3638
content: escape-svg($breadcrumb-divider);
3739
@include ltr {
3840
padding-right: $breadcrumb-item-padding;
@@ -58,6 +60,8 @@
5860
}
5961

6062
&.active {
61-
color: $breadcrumb-active-color;
63+
@include themes($breadcrumb-theme-map, $create: parent) {
64+
color: themes-get-value("breadcrumb-active-color");
65+
}
6266
}
6367
}

scss/_forms.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ textarea.form-control {
249249
// Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
250250
&[disabled] ~ .form-check-label,
251251
&:disabled ~ .form-check-label {
252-
color: $text-muted;
252+
@include themes($typography-theme-map, $create: parent) {
253+
color: themes-get-value("text-muted");
254+
}
253255
}
254256
}
255257

scss/utilities/_text.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@
4949
}
5050

5151
.text-body { color: $body-color !important; }
52-
.text-muted { color: $text-muted !important; }
52+
.text-muted {
53+
@include themes($typography-theme-map, $create: parent) {
54+
color: themes-get-value("text-muted") !important;
55+
}
56+
}
5357

5458
.text-black-50 { color: rgba($black, .5) !important; }
5559
.text-white-50 { color: rgba($white, .5) !important; }

scss/variables/_options.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ $enable-deprecation-messages: false !default;
2323
$enable-sidebar-nav-rounded: false !default;
2424
$layout-transition-speed: .3s !default;
2525
$enable-elevations: true !default;
26+
$enable-prefers-color-scheme: false !default;
2627

2728
$options: () !default;
2829

scss/variables/_typography.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ $icon-size-base: 1rem !default;
8989
$icon-size-sm: $icon-size-base * .875 !default;
9090
$icon-size-lg: $icon-size-base * 1.25 !default;
9191
$icon-size-xl: $icon-size-base * 1.5 !default;
92+
93+
94+
$typography-theme-map: () !default;
95+
// stylelint-disable-next-line scss/dollar-variable-default
96+
$typography-theme-map: map-merge(
97+
(
98+
default: (
99+
"text-muted": $text-muted
100+
)
101+
),
102+
$typography-theme-map
103+
);

0 commit comments

Comments
 (0)