Skip to content

Commit fd8a248

Browse files
committed
fix: hr and vr elements don't support themes
1 parent 4ae5922 commit fd8a248

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

scss/_type.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ hr {
5656
margin-top: $hr-margin-y;
5757
margin-bottom: $hr-margin-y;
5858
border: 0;
59-
border-top: $hr-border-width solid $hr-border-color;
59+
border-top: $hr-border-width solid;
60+
@include themes($typography-theme-map, $create: parent) {
61+
border-color: themes-get-value("hr-border-color");
62+
}
6063
}
6164

6265
//
@@ -65,7 +68,9 @@ hr {
6568

6669
.c-vr {
6770
width: $vr-width;
68-
background-color: $vr-color-bg;
71+
@include themes($typography-theme-map, $create: parent) {
72+
background-color: themes-get-value("vr-bg");
73+
}
6974
}
7075

7176
//

scss/variables/_typography.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ $blockquote-font-size: $font-size-base * 1.25 !default;
5959
$hr-border-color: rgba($black, .2) !default;
6060
$hr-border-width: $border-width !default;
6161

62-
$vr-color-bg: rgba($black, .2) !default;
63-
$vr-width: $border-width !default;
62+
$vr-bg: rgba($black, .2) !default;
63+
$vr-width: $border-width !default;
6464

6565
$mark-padding: .2em !default;
6666

@@ -96,7 +96,9 @@ $typography-theme-map: () !default;
9696
$typography-theme-map: map-merge(
9797
(
9898
default: (
99-
"text-muted": $text-muted
99+
"hr-border-color": $hr-border-color,
100+
"vr-bg": $vr-bg,
101+
"text-muted": $text-muted
100102
)
101103
),
102104
$typography-theme-map

0 commit comments

Comments
 (0)