mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 10:18:46 +03:00
fix(ui): use V2 regular and medium font weights (#61444)
This commit is contained in:
committed by
GitHub
Unverified
parent
bea50be4b6
commit
9d002c27a7
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user