Skip to content

Commit d2f6207

Browse files
fix letter spacing and line height not being reset on "r"
1 parent 9b96405 commit d2f6207

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/nav.js

+4
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ function pushPage(key) {
348348
websiteData.weight = 400
349349
document.querySelector("body").style.fontVariationSettings = `"wght" 400`
350350
document.forms["weight_form"][`weight_${websiteData.weight}`].checked = true
351+
document.forms["letter_spacing_form"][`letter_spacing_${websiteData.letterSpacing}`].checked = true
352+
document.forms["line_height_form"][`line_height_${websiteData.lineHeight}`].checked = true
351353
codeExample.style.fontFamily = "CommitMono"
352354
document.querySelector("#font_name").value = ""
353355
document.querySelector("#font_name + p").textContent = ""
@@ -357,6 +359,8 @@ function pushPage(key) {
357359
if (typeof updateWaterfall === "function") updateWaterfall()
358360
if (typeof buildExample === "function") buildExample()
359361
if (typeof updateWeight === "function") updateWeight(null, weightForm)
362+
if (typeof updateLetterSpacing === "function") updateLetterSpacing(null, letterSpacingForm)
363+
if (typeof updateLineHeight === "function") updateLineHeight(null, lineHeightForm)
360364
}
361365
}
362366

0 commit comments

Comments
 (0)