fix(ui): use V2 regular and medium font weights (#61444)

This commit is contained in:
usrnk1
2026-11-03 19:31:28 +01:00
committed by GitHub
Unverified
parent bea50be4b6
commit 9d002c27a7
2 changed files with 11 additions and 3 deletions
@@ -110,7 +110,7 @@ story(
await expect(component.getByRole("option", { selected: true })).toHaveText("Explain the latest changes")
await expect(
component.getByRole("option", { name: "Explain the latest changes", exact: true }).locator("bdi"),
).toHaveCSS("font-weight", "400")
).toHaveCSS("font-weight", "440")
await search.press("ArrowDown")
await expect(component.getByRole("option", { selected: true })).toHaveText(
"Review the composer layout Keep keyboard navigation accessible",
+10 -2
View File
@@ -9,8 +9,8 @@
--font-size-base: 14px;
--font-size-large: 16px;
--font-size-x-large: 20px;
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-regular: 440;
--font-weight-medium: 530;
--font-weight-bold: 670;
--line-height-normal: 130%;
--line-height-large: 150%;
@@ -630,3 +630,11 @@
--text-stronger: rgba(255, 255, 255, 0.936);
}
}
/* CJK system fonts ship fixed weights, so 440 and 530 snap up to Medium and Semibold. */
:lang(zh),
:lang(ja),
:lang(ko) {
--font-weight-regular: 400;
--font-weight-medium: 500;
}