diff --git a/design-system/apps/design-lab/src/pages/ColorsPage.tsx b/design-system/apps/design-lab/src/pages/ColorsPage.tsx index 9c961a6de9..83b20c17f5 100644 --- a/design-system/apps/design-lab/src/pages/ColorsPage.tsx +++ b/design-system/apps/design-lab/src/pages/ColorsPage.tsx @@ -34,7 +34,7 @@ interface ColorsPageProps { } const semanticColorTokens = themeTokenCatalog.filter( - (token): token is ThemeTokenCatalogEntry => token.category === "color", + (token): token is ThemeTokenCatalogEntry => token.type === "color", ); const semanticGroupOrder: readonly SemanticColorGroup[] = [ @@ -126,6 +126,7 @@ const referenceNameByValue = new Map( ); function getSemanticGroup(token: ThemeTokenCatalogEntry): SemanticColorGroup { + if (token.name.startsWith("component.button.")) return "action"; const segment = token.name.split(".")[1] as SemanticColorGroup | undefined; return segment && semanticGroupOrder.includes(segment) ? segment : "accent"; } diff --git a/design-system/apps/design-lab/src/pages/ComponentDetailPage.tsx b/design-system/apps/design-lab/src/pages/ComponentDetailPage.tsx index a691451490..6c386c466d 100644 --- a/design-system/apps/design-lab/src/pages/ComponentDetailPage.tsx +++ b/design-system/apps/design-lab/src/pages/ComponentDetailPage.tsx @@ -552,7 +552,7 @@ export function ComponentDetailPage({ return `import { Icon, Menu, MenuItem, MenuSection, MenuSeparator } from "@openbitfun/ui";\n\n
`; } if (component.name === "Dialog") { - return `import { Button, Dialog, DialogBody, DialogClose, DialogFooter, DialogHeader, DialogHeading, DialogTitle } from "@openbitfun/ui";\n\n`; + return `import { Button, Dialog, DialogBody, DialogClose, DialogFooter, DialogHeader, DialogHeading, DialogTitle } from "@openbitfun/ui";\n\n`; } if (component.name === "Sheet") { return `import { Button, DialogBody, DialogClose, DialogFooter, DialogHeader, DialogHeading, DialogTitle, Sheet } from "@openbitfun/ui";\n\n{firstLine}
{detailError}
-{t('trust.required', { path: workspacePath })}
{t('init.notRepository')}