Skip to content

Commit e993c57

Browse files
Add default fallback for title font weight
This approach ensures we have a common default (bold) across all themes that don't choose to set a custom font-weight
1 parent 95ab4c4 commit e993c57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: assets/sass/protocol/base/elements/_titles.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ h3,
1212
h4,
1313
h5,
1414
h6 {
15+
$default-font-weight: bold;
1516
font-family: $title-font-family;
1617
color: $title-text-color;
17-
font-weight: bold;
18+
font-weight: $default-font-weight;
1819
margin: 0 0 0.5em;
1920

2021
.mzp-t-dark & {
@@ -24,7 +25,7 @@ h6 {
2425
@supports (--css: variables) {
2526
font-family: var(--title-font-family);
2627
font-variant-ligatures: var(--title-font-ligatures);
27-
font-weight: var(--title-font-weight);
28+
font-weight: var(--title-font-weight, #{$default-font-weight});
2829
letter-spacing: var(--title-letter-spacing);
2930
color: var(--title-text-color);
3031

0 commit comments

Comments
 (0)