Skip to content

Commit 8f8973a

Browse files
committed
Only override if a new value is set
1 parent c4b8ee5 commit 8f8973a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/marketing/type/typography.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,25 @@
7777
@include breakpoint(md) {
7878
font-size: map-get($pairing-md, "size") !important;
7979
line-height: map-get($pairing-md, "lh") !important;
80-
@if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
81-
@if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; }
80+
@if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold and map-get($pairing, "size") < $mktg-body-spacing-threshold) {
81+
letter-spacing: $mktg-body-spacing-large !important;
82+
}
83+
@if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold and map-get($pairing, "size") < $mktg-body-weight-threshold) {
84+
font-weight: $font-weight-semibold !important;
85+
}
8286
}
8387
}
8488

8589
@if (nth($sizes, 2) != nth($sizes, 3)) {
8690
@include breakpoint(lg) {
8791
font-size: map-get($pairing-lg, "size") !important;
8892
line-height: map-get($pairing-lg, "lh") !important;
89-
@if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
90-
@if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; }
93+
@if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold and map-get($pairing-md, "size") < $mktg-body-spacing-threshold) {
94+
letter-spacing: $mktg-body-spacing-large !important;
95+
}
96+
@if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold and map-get($pairing-md, "size") < $mktg-body-weight-threshold) {
97+
font-weight: $font-weight-semibold !important;
98+
}
9199
}
92100
}
93101
}

0 commit comments

Comments
 (0)