From ca18cdcd3a6a30cabff044809264c3a681ecffa1 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Tue, 22 Sep 2026 16:08:29 -0400 Subject: [PATCH] refactor(v2): simplify the RChip ellipses story frame pr-ready step 3 (simplify): bind the cell frame as a style object and drop the outline that doubled the dashed border. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../v2/lib/primitives/RChip/RChip.stories.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/frontend/src/v2/lib/primitives/RChip/RChip.stories.ts b/frontend/src/v2/lib/primitives/RChip/RChip.stories.ts index a35f0fb98..8d3bf410f 100644 --- a/frontend/src/v2/lib/primitives/RChip/RChip.stories.ts +++ b/frontend/src/v2/lib/primitives/RChip/RChip.stories.ts @@ -319,13 +319,13 @@ const CONSTRAINED_GALLERY_LADDER = [ { widthPx: 80, size: "large" }, ] as const; -const CONSTRAINED_CELL_FRAME = - "box-sizing:border-box;padding:6px;" + - "border:2px dashed var(--r-color-fg-muted);" + - "border-radius:6px;" + - "background:color-mix(in srgb, var(--r-color-bg-elevated) 65%, transparent);" + - "outline:1px solid color-mix(in srgb, var(--r-color-border) 80%, transparent);" + - "outline-offset:-1px"; +const CONSTRAINED_CELL_FRAME = { + boxSizing: "border-box", + padding: "6px", + border: "2px dashed var(--r-color-fg-muted)", + borderRadius: "6px", + background: "color-mix(in srgb, var(--r-color-bg-elevated) 65%, transparent)", +} as const; export const TypographyEllipses: Story = { name: "Typography · ellipses", @@ -346,9 +346,7 @@ export const TypographyEllipses: Story = { {{ row.widthPx }}px · {{ row.size }} -
+