Skip to content

Commit c1174c7

Browse files
committed
Correct font weight across all utility classes
1 parent f1429dc commit c1174c7

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/marketing/type/typography.scss

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,33 @@
4141
}
4242
}
4343

44+
.f0-mktg,
45+
.f1-mktg,
46+
.f2-mktg,
47+
.f3-mktg,
48+
.f4-mktg,
49+
.f5-mktg,
50+
.f6-mktg {
51+
font-family: $font-mktg;
52+
font-feature-settings: $mktg-font-feature-settings;
53+
font-weight: $font-weight-normal !important;
54+
}
55+
4456
@each $body, $sizes in $mktg-bodies {
4557
.f#{$body}-mktg {
4658
$pairing: map-get($mktg-body-pairings, nth($sizes, 1));
4759
font-size: map-get($pairing, "size") !important;
4860
line-height: map-get($pairing, "lh") !important;
49-
@if (map-get($pairing, "size") >= 28px) {
50-
letter-spacing: $mktg-body-spacing-large;
51-
}
61+
@if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; }
62+
@if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; }
5263

5364
@if (nth($sizes, 1) != nth($sizes, 2)) {
5465
@include breakpoint(md) {
5566
$pairing: map-get($mktg-body-pairings, nth($sizes, 2));
5667
font-size: map-get($pairing, "size") !important;
5768
line-height: map-get($pairing, "lh") !important;
58-
@if (map-get($pairing, "size") >= 28px) {
59-
letter-spacing: $mktg-body-spacing-large;
60-
}
69+
@if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; }
70+
@if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; }
6171
}
6272
}
6373

@@ -66,9 +76,8 @@
6676
$pairing: map-get($mktg-body-pairings, nth($sizes, 3));
6777
font-size: map-get($pairing, "size") !important;
6878
line-height: map-get($pairing, "lh") !important;
69-
@if (map-get($pairing, "size") >= 28px) {
70-
letter-spacing: $mktg-body-spacing-large;
71-
}
79+
@if (map-get($pairing, "size") >= 28px) { letter-spacing: $mktg-header-spacing-default !important; }
80+
@if (map-get($pairing, "size") >= 24px) { font-weight: $font-weight-semibold !important; }
7281
}
7382
}
7483
}

0 commit comments

Comments
 (0)