:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(quill): add secondary and destructive outline buttons (#97022)
Adam Leithbcae628798e3
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 8f32cfbd6912..b511b4273dbe 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -2879,7 +2879,7 @@ snapshots:filters-taxonomic-filter-menu-rebuild--data-warehouse-config--dark:hash: v1.k794b7964.695594eab6753acf560cbd54ecd1fa59157d0844e11c1ace7fe5e0637d60a570.84QX-AsU_pJxzLcbc1edVoTr4rn-EnEY25SbyuXe7Ysfilters-taxonomic-filter-menu-rebuild--data-warehouse-config--light:- hash: v1.k794b7964.48d96bddd32a3aab5e42c6b74c8404452559526a6a7f50931e037ce2d19b95b2.2K6X_AFjB8Yjo5SjwZvHlU0La7Kp79G-BSqYjMUoB9Q+ hash: v1.k794b7964.9b103b15dae03d37639774c23f953389174ee19b1a4f2f489b18066dbf98efca.fjzwbQ5F4fpz6ne4XifIruNeFVeOtgzfm-EuIRN7fscfilters-taxonomic-filter-menu-rebuild--events-and-actions--dark:hash: v1.k794b7964.d5355b3d3319f4838b0295159ce6c76348860d868e010f2fdbb3c99a5700ebfd.vVOuWbc1CpuiQPBuqg7oTse3PJCTw6PctXuNB634_58filters-taxonomic-filter-menu-rebuild--events-and-actions--light:@@ -2903,7 +2903,7 @@ snapshots:filters-taxonomic-filter-menu-rebuild--recents-bare-key-expansion--dark:hash: v1.k794b7964.ea50a7beff34bc4e953b625a4edf12bca69b6849c5b1a78f11002c973f6b3c90.IFWFrwM8maHSl4zUuOyeaBoEMTiP3NCiAag1ydXra7kfilters-taxonomic-filter-menu-rebuild--recents-bare-key-expansion--light:- hash: v1.k794b7964.1ed0f75c3a0480005dea3df32256890a335aac22a66cf4a4baed82dc6fc25854.Zdi4U-3WRmlIToDecZBZVqjap7rYrCGHzuwQP-brtkY+ hash: v1.k794b7964.1de47100d52630b055886d2466856482121140671ac31650a87df9f30563ebb7.rbfuNBJbo9zFhsbQxI9SPjwqjtD1NiikkD6UzRTzonIfilters-taxonomic-filter-menu-rebuild--series-plus-data-warehouse--dark:hash: v1.k794b7964.90cc2a43a403a77a2776da75787fead820fe81b498e12b34531b3587db86f1c1.S2-OXA8LBD3cOCdbfGa_imItzzMStBiQ7-P2XGO2AD8filters-taxonomic-filter-menu-rebuild--series-plus-data-warehouse--light:@@ -8363,7 +8363,7 @@ snapshots:scenes-app-notebooks-widget-views--error-tracking-issue-views--dark:hash: v1.k794b7964.6c346015a63b3076659613d2b69cb75f84666b22cebed5d5f6d86e8305b2112e.dGCtvijEXSPE6HgIe_VZAYRWeds5-fuARHT8XK-D5ysscenes-app-notebooks-widget-views--error-tracking-issue-views--light:- hash: v1.k794b7964.2ff6b8884877008ffde646b74e967e2e808611366555db49f5a4e65a756e2c97.nivtpgSBY0yV62wPozXc-uzVm824nuwTdKKE06_ck3E+ hash: v1.k794b7964.626631cb208732c89f5d2cc0d18dfffb384f9bf7fdba83f5a76557cbcdac67e1.ElLgbqlgDK5p9xMMbf4hNKhRTWUJH5xq8pF05Wd9_jMscenes-app-notebooks-widget-views--experiment-views--dark:hash: v1.k794b7964.18e5f82b3c2cd8e799443906e92db7412a9b4859aec30c7227d01ae6b40d3bf4.IER7KczV1pRPGF7CuAEIXKAE_FwuxM6V9PvRT6Jx2icscenes-app-notebooks-widget-views--experiment-views--light:diff --git a/packages/quill/apps/storybook/stories/layout.stories.tsx b/packages/quill/apps/storybook/stories/layout.stories.tsxindex 4e09e310d7cd..b1c276418e3c 100644--- a/packages/quill/apps/storybook/stories/layout.stories.tsx+++ b/packages/quill/apps/storybook/stories/layout.stories.tsx@@ -1,5 +1,30 @@import React from 'react'-import { Button, Card, CardContent, CardFooter, CardHeader, CardTitle, MenuLabel } from '../../../packages/primitives/src'+import {+ Activity as ActivityIcon,+ Bell as BellIcon,+ ChevronsUpDown as ChevronsUpDownIcon,+ Filter as FilterIcon,+ Folder as FolderIcon,+ House as HouseIcon,+ Inbox as InboxIcon,+ Plus as PlusIcon,+ Repeat as RepeatIcon,+ Search as SearchIcon,+ Settings as SettingsIcon,+ Shapes as ShapesIcon,+} from 'lucide-react'+import {+ Badge,+ Button,+ Card,+ CardContent,+ CardFooter,+ CardHeader,+ CardTitle,+ MenuLabel,+ Separator,+ Text,+} from '../../../packages/primitives/src'import type { Meta, StoryObj } from '@storybook/react'const meta = {@@ -68,3 +93,105 @@ export const Default: Story = {),} satisfies Story++const RAIL_DESTINATIONS: { label: string; Icon: typeof HouseIcon; current?: boolean }[] = [+ { label: 'Home', Icon: HouseIcon, current: true },+ { label: 'Inbox', Icon: InboxIcon },+ { label: 'Activity', Icon: ActivityIcon },+ { label: 'Loops', Icon: RepeatIcon },+ { label: 'Spaces', Icon: ShapesIcon },+]++const NavRail = (): React.ReactElement => (+ <nav+ aria-label="Destinations"+ className="flex w-11 shrink-0 flex-col items-center gap-1 border-border border-r py-2"+ >+ <Button size="icon" aria-label="Search">+ <SearchIcon />+ </Button>+ <Separator className="my-1 w-6" />+ {RAIL_DESTINATIONS.map(({ label, Icon, current }) => (+ <Button+ key={label}+ size="icon"+ aria-label={label}+ aria-current={current ? 'page' : undefined}+ className={current ? 'bg-fill-selected' : undefined}+ >+ <Icon />+ </Button>+ ))}+ <div className="mt-auto flex flex-col items-center gap-1">+ <Button size="icon" aria-label="Notifications">+ <BellIcon />+ </Button>+ <Button size="icon" aria-label="Settings">+ <SettingsIcon />+ </Button>+ </div>+ </nav>+)++const Sidebar = (): React.ReactElement => (+ <aside className="flex w-[272px] shrink-0 flex-col gap-2 border-border border-r p-2">+ <div className="flex items-center gap-1">+ <Button left className="min-w-0 flex-1">+ <FolderIcon />+ <span className="truncate">posthog / code</span>+ <ChevronsUpDownIcon className="ml-auto" />+ </Button>+ <Button size="icon" aria-label="New task">+ <PlusIcon />+ </Button>+ </div>+ <div className="flex flex-col gap-px [&_button]:w-full">+ <MenuLabel>Pinned</MenuLabel>+ <Button left>Rebuild the nav rail</Button>+ <Button left>Ship the layout story</Button>+ </div>+ <div className="flex flex-col gap-px [&_button]:w-full">+ <MenuLabel>Channels</MenuLabel>+ <Button left>#general</Button>+ <Button left>#design-system</Button>+ <Button left aria-current="page" className="bg-fill-selected">+ #desktop+ </Button>+ <Button left>#releases</Button>+ </div>+ </aside>+)++const TopBar = (): React.ReactElement => (+ <header className="flex h-10 shrink-0 items-center gap-2 border-border border-b px-3">+ <Text size="sm" weight="semibold" render={<span />} className="truncate">+ #desktop+ </Text>+ <Badge>4 members</Badge>+ <div className="ml-auto flex items-center gap-2">+ <Button variant="outline" size="icon-sm" aria-label="Filter">+ <FilterIcon />+ </Button>+ <Button variant="outline" size="sm">+ Share+ </Button>+ <Button variant="primary" size="sm">+ New task+ </Button>+ </div>+ </header>+)++export const BasicLayout: Story = {+ parameters: { layout: 'fullscreen' },+ render: () => (+ <div className="flex h-[640px] overflow-hidden bg-muted border border-border rounded-lg">+ <NavRail />+ <Sidebar />+ <main className="flex min-w-0 flex-1 flex-col overflow-hidden rounded-tl-sm bg-background">+ <TopBar />+ <div className="flex-1 overflow-auto" />+ </main>+ </div>+ ),+} satisfies Storydiff --git a/packages/quill/packages/primitives/AGENTS.md b/packages/quill/packages/primitives/AGENTS.mdindex 68a06b1d6630..e37318782d72 100644--- a/packages/quill/packages/primitives/AGENTS.md+++ b/packages/quill/packages/primitives/AGENTS.md@@ -132,21 +132,21 @@ Don't hand-roll `<p className="text-xs text-muted-foreground">` when `<Text size## Component Catalog-| Component | Variants | Sizes | Notes |-| ------------ | -------------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |-| Button | default, primary, outline, destructive, link, link-muted | default, xs, sm, lg, icon, icon-xs, icon-sm, icon-lg | `loading` overlays a centered spinner and disables the button (width stays stable) |-| Badge | default, info, destructive, warning, success, completed | — | Semantic status |-| Toggle | default, outline | default, sm, lg, icon | |-| Chip | outline | sm | Use with ChipClose |-| Separator | — | — | orientation: horizontal/vertical |-| Spinner | — | — | SVG, accepts svg props |-| Skeleton | — | — | Pulsing placeholder div |-| SkeletonText | — | — | lines, minWidth, maxWidth |-| Progress | — | — | value: 0-100 |-| Slider | — | — | value, min, max |-| Avatar | — | lg, default, sm, xs | Compose `Avatar > AvatarImage + AvatarFallback`; image errors fall back to initials/icon |-| ChatGlobe | — | — | Sweeping globe for "browsing the web"; sizes from its container. Still globe under reduced motion |-| AvatarGroup | — | default, sm, xs | Row of Avatars; `stacked` overlaps + spreads on hover (no reflow), `reverse` spreads left; `size` forwards to children |+| Component | Variants | Sizes | Notes |+| ------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |+| Button | default, primary, secondary, outline, destructive, destructive-outline, link, link-muted | default, xs, sm, lg, icon, icon-xs, icon-sm, icon-lg | `loading` overlays a centered spinner and disables the button (width stays stable) |+| Badge | default, info, destructive, warning, success, completed | — | Semantic status |+| Toggle | default, outline | default, sm, lg, icon | |+| Chip | outline | sm | Use with ChipClose |+| Separator | — | — | orientation: horizontal/vertical |+| Spinner | — | — | SVG, accepts svg props |+| Skeleton | — | — | Pulsing placeholder div |+| SkeletonText | — | — | lines, minWidth, maxWidth |+| Progress | — | — | value: 0-100 |+| Slider | — | — | value, min, max |+| Avatar | — | lg, default, sm, xs | Compose `Avatar > AvatarImage + AvatarFallback`; image errors fall back to initials/icon |+| ChatGlobe | — | — | Sweeping globe for "browsing the web"; sizes from its container. Still globe under reduced motion |+| AvatarGroup | — | default, sm, xs | Row of Avatars; `stacked` overlaps + spreads on hover (no reflow), `reverse` spreads left; `size` forwards to children |---@@ -440,6 +440,8 @@ For example, drop the default `1rem` viewport padding for full-bleed content: `<Same shell as Dialog (shared `quill-dialog__*` styles) but `role="alertdialog"`, always modal, backdrop clicks never dismiss, and no X button — the user must pick an action (or Esc). Use for destructive/irreversible confirmations; put Cancel first so it takes initial focus.+**The confirm button in an alert dialog footer is `destructive-outline`.** It carries the same red fill as `destructive`; the border is the whole difference. In a footer that border pairs it with the `outline` Cancel beside it, so the two read as one row of choices rather than a warning sitting next to a button. Keep `destructive` for the trigger out in the app and for `variant="destructive"` menu items, where a borderless fill stands out among neutral controls.+```tsx<AlertDialog><AlertDialogTrigger render={<Button variant="destructive" />}>Delete project</AlertDialogTrigger>@@ -450,7 +452,7 @@ Same shell as Dialog (shared `quill-dialog__*` styles) but `role="alertdialog"`,</AlertDialogHeader><AlertDialogFooter><AlertDialogClose render={<Button variant="outline" />}>Cancel</AlertDialogClose>- <AlertDialogClose render={<Button variant="destructive" />}>Delete</AlertDialogClose>+ <AlertDialogClose render={<Button variant="destructive-outline" />}>Delete</AlertDialogClose></AlertDialogFooter></AlertDialogContent></AlertDialog>@@ -1230,8 +1232,9 @@ Each container's CSS handles `flex-shrink: 0` and the per-context size via `svg:3. **Badge variants are semantic** — info (blue), warning (yellow), success (green), completed (purple, terminal done state e.g. merged PRs), destructive (red), default (neutral)4. **Use `render` on triggers** — DialogTrigger, PopoverTrigger, TooltipTrigger, DrawerTrigger accept `render` to render as the child element5. **DropdownMenuItem has variants** — use `variant="destructive"` for dangerous actions; default is `"default"`-6. **Prefer composition over props** — use CardHeader > CardTitle instead of `<Card title="...">`-7. **Use `cn()` for class overrides** — import from `@posthog/quill-primitives` to merge Tailwind classes safely-8. **Follow the spacing conventions** — see Spacing and layout above; `gap-2` between related siblings, `gap-4` between sections, never re-pad primitive internals-9. **Use `loading` on submit buttons** — any Button that triggers a network request must pass `loading` while the request is in flight; it blocks activation (guarding double-submission) and overlays a spinner without changing the button's width, while staying focusable for screen readers (`aria-disabled` + `aria-busy`, not the native `disabled` attribute)-10. **Don't size or color icons inside primitives** — see Icons above; component CSS sizes bare svg children per context, and `currentColor` handles tinting+6. **Alert dialog footers confirm with `destructive-outline`** — `destructive` is for the trigger that opens the confirmation and for destructive menu items; inside an AlertDialog footer the confirm button is `destructive-outline` beside an `outline` Cancel+7. **Prefer composition over props** — use CardHeader > CardTitle instead of `<Card title="...">`+8. **Use `cn()` for class overrides** — import from `@posthog/quill-primitives` to merge Tailwind classes safely+9. **Follow the spacing conventions** — see Spacing and layout above; `gap-2` between related siblings, `gap-4` between sections, never re-pad primitive internals+10. **Use `loading` on submit buttons** — any Button that triggers a network request must pass `loading` while the request is in flight; it blocks activation (guarding double-submission) and overlays a spinner without changing the button's width, while staying focusable for screen readers (`aria-disabled` + `aria-busy`, not the native `disabled` attribute)+11. **Don't size or color icons inside primitives** — see Icons above; component CSS sizes bare svg children per context, and `currentColor` handles tintingdiff --git a/packages/quill/packages/primitives/src/alert-dialog.stories.tsx b/packages/quill/packages/primitives/src/alert-dialog.stories.tsxindex 1e8a86002a1a..caa0b3b1b634 100644--- a/packages/quill/packages/primitives/src/alert-dialog.stories.tsx+++ b/packages/quill/packages/primitives/src/alert-dialog.stories.tsx@@ -34,7 +34,7 @@ export const Default: Story = {</AlertDialogHeader><AlertDialogFooter><AlertDialogClose render={<Button variant="outline" />}>Cancel</AlertDialogClose>- <AlertDialogClose render={<Button variant="destructive" />}>Delete project</AlertDialogClose>+ <AlertDialogClose render={<Button variant="destructive-outline" />}>Delete project</AlertDialogClose></AlertDialogFooter></AlertDialogContent></AlertDialog>@@ -57,7 +57,7 @@ export const NoPointerDismissal: Story = {</AlertDialogHeader><AlertDialogFooter><AlertDialogClose render={<Button variant="outline" />}>Cancel</AlertDialogClose>- <AlertDialogClose render={<Button variant="destructive" />}>Revoke key</AlertDialogClose>+ <AlertDialogClose render={<Button variant="destructive-outline" />}>Revoke key</AlertDialogClose></AlertDialogFooter></AlertDialogContent></AlertDialog>diff --git a/packages/quill/packages/primitives/src/button.css b/packages/quill/packages/primitives/src/button.cssindex a0a2a86db832..8843c7764306 100644--- a/packages/quill/packages/primitives/src/button.css+++ b/packages/quill/packages/primitives/src/button.css@@ -173,6 +173,28 @@translate: 0 0;}+ /* =========================================================================+ Variant: secondary+ ========================================================================= */+ .quill-button--variant-secondary {+ background-color: var(--fill-hover);+ }++ /* One rung above the resting fill. Written out rather than tokenized: no+ other surface needs an elevated hover over `--fill-hover`. */+ .quill-button--variant-secondary:not(:disabled, [aria-disabled='true']):hover {+ background-color: color-mix(in oklab, var(--foreground) 6%, transparent);+ }++ :is(.dark, [theme='dark']) .quill-button--variant-secondary:not(:disabled, [aria-disabled='true']):hover {+ background-color: color-mix(in oklab, var(--foreground) 10%, transparent);+ }++ .quill-button--variant-secondary[aria-expanded='true'],+ .quill-button--variant-secondary[data-popup-open] {+ background-color: var(--fill-expanded);+ }+/* =========================================================================Variant: outline========================================================================= */@@ -200,28 +222,49 @@}/* =========================================================================- Variant: destructive+ Variant: destructive / destructive outline========================================================================= */- .quill-button--variant-destructive {++ /* One fill ladder for both. The outline is that ladder under a red border,+ so the two can never drift apart. */+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline) {color: var(--destructive-foreground);background-color: color-mix(in oklab, var(--destructive) 50%, transparent);}+ .quill-button--variant-destructive-outline {+ border-color: color-mix(in oklab, var(--destructive-foreground) 30%, transparent);+ }+/* `data-highlighted` is the keyboard equivalent of hover inside a menu —both land on the same brighter fill so navigating by arrow keys readsthe same as pointing at the row. */- .quill-button--variant-destructive:not(:disabled, [aria-disabled='true']):hover,- .quill-button--variant-destructive:not(:disabled, [aria-disabled='true'])[data-highlighted] {+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline):not(+ :disabled,+ [aria-disabled='true']+ ):hover,+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline):not(+ :disabled,+ [aria-disabled='true']+ )[data-highlighted] {background-color: var(--destructive);}- .quill-button--variant-destructive:focus-visible {- border-color: color-mix(in oklab, var(--destructive) 40%, transparent);- box-shadow: 0 0 0 2px color-mix(in oklab, var(--destructive-foreground) 60%, transparent);+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline):not(+ :disabled,+ [aria-disabled='true']+ ):active {+ background-color: color-mix(in oklab, var(--destructive) 88%, var(--destructive-foreground) 12%);}- .quill-button--variant-destructive[data-popup-open] {- background-color: color-mix(in oklab, var(--destructive) 20%, transparent);+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline)[aria-expanded='true'],+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline)[data-popup-open] {+ background-color: var(--destructive);+ }++ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline):focus-visible {+ border-color: currentColor;+ box-shadow: 0 0 0 2px color-mix(in oklab, var(--destructive-foreground) 60%, transparent);}/* =========================================================================@@ -412,6 +455,10 @@transition: opacity 150ms ease;}+ .quill-button--variant-destructive-outline[data-loading] {+ border-color: var(--destructive-foreground);+ }+.quill-button[data-loading] > .quill-spinner {position: absolute;inset: 0;@@ -426,7 +473,7 @@color: var(--primary-foreground);}- .quill-button--variant-destructive[data-loading] > .quill-spinner {+ :is(.quill-button--variant-destructive, .quill-button--variant-destructive-outline)[data-loading] > .quill-spinner {color: var(--destructive-foreground);}diff --git a/packages/quill/packages/primitives/src/button.stories.tsx b/packages/quill/packages/primitives/src/button.stories.tsxindex cdce2162f1d7..0f7afd358fe2 100644--- a/packages/quill/packages/primitives/src/button.stories.tsx+++ b/packages/quill/packages/primitives/src/button.stories.tsx@@ -12,7 +12,16 @@ const meta = {argTypes: {variant: {control: 'select',- options: ['default', 'primary', 'outline', 'destructive', 'link', 'link-muted'],+ options: [+ 'default',+ 'primary',+ 'secondary',+ 'outline',+ 'destructive',+ 'destructive-outline',+ 'link',+ 'link-muted',+ ],},size: {control: 'select',@@ -31,7 +40,9 @@ export const Default = {<div className="flex flex-wrap gap-2"><Button>Default</Button><Button variant="primary">Primary</Button>+ <Button variant="secondary">Secondary</Button><Button variant="outline">Outline</Button>+ <Button variant="destructive-outline">Destructive outline</Button><Button variant="destructive">Destructive</Button><Button variant="link">Link</Button></div>@@ -64,12 +75,18 @@ export const WithIcons = {<Button variant="primary"><TrashIcon /> Primary</Button>+ <Button variant="secondary">+ <TrashIcon /> Secondary+ </Button><Button variant="outline"><TrashIcon /> Outline</Button><Button variant="destructive"><TrashIcon /> Destructive</Button>+ <Button variant="destructive-outline">+ <TrashIcon /> Destructive outline+ </Button><Button variant="link"><TrashIcon /> Link</Button>@@ -88,17 +105,25 @@ export const WithKBD = {Primary<Kbd>⌘B</Kbd></Button>+ <Button variant="secondary">+ Secondary+ <Kbd>⌘C</Kbd>+ </Button><Button variant="outline">Outline- <Kbd>⌘C</Kbd>+ <Kbd>⌘D</Kbd></Button><Button variant="destructive">Destructive- <Kbd>⌘D</Kbd>+ <Kbd>⌘E</Kbd>+ </Button>+ <Button variant="destructive-outline">+ Destructive outline+ <Kbd>⌘F</Kbd></Button><Button variant="link">Link- <Kbd>⌘E</Kbd>+ <Kbd>⌘G</Kbd></Button></div>),@@ -113,12 +138,18 @@ export const IconOnly = {<Button variant="primary" size="icon"><TrashIcon /></Button>+ <Button variant="secondary" size="icon">+ <TrashIcon />+ </Button><Button variant="outline" size="icon"><TrashIcon /></Button><Button variant="destructive" size="icon"><TrashIcon /></Button>+ <Button variant="destructive-outline" size="icon">+ <TrashIcon />+ </Button><Button variant="link" size="icon"><TrashIcon /></Button>@@ -126,6 +157,38 @@ export const IconOnly = {),} satisfies Story+export const InteractionStates = {+ parameters: {+ pseudo: {+ hover: ['#secondary-hover', '#destructive-outline-hover'],+ active: '#destructive-outline-active',+ focusVisible: '#destructive-outline-focus',+ },+ },+ render: () => (+ <div className="flex flex-col gap-2 items-start">+ <div className="flex flex-wrap gap-2">+ <Button variant="secondary">Secondary resting</Button>+ <Button id="secondary-hover" variant="secondary">+ Secondary hover+ </Button>+ </div>+ <div className="flex flex-wrap gap-2">+ <Button variant="destructive-outline">Destructive outline resting</Button>+ <Button id="destructive-outline-hover" variant="destructive-outline">+ Destructive outline hover+ </Button>+ <Button id="destructive-outline-active" variant="destructive-outline">+ Destructive outline active+ </Button>+ <Button id="destructive-outline-focus" variant="destructive-outline">+ Destructive outline focus+ </Button>+ </div>+ </div>+ ),+} satisfies Story+export const Sizes = {render: () => (<div className="grid grid-cols-[70px_30px_100px] gap-x-4 gap-y-2 items-center justify-items-start">@@ -170,17 +233,23 @@ export const Sizes = {export const Disabled = {render: () => (- <div className="flex items-center gap-2">+ <div className="flex flex-wrap items-center gap-2"><Button disabled>Default</Button><Button variant="primary" disabled>Primary</Button>+ <Button variant="secondary" disabled>+ Secondary+ </Button><Button variant="outline" disabled>Outline</Button><Button variant="destructive" disabled>Destructive</Button>+ <Button variant="destructive-outline" disabled>+ Destructive outline+ </Button><Button variant="link" disabled>Link</Button>@@ -202,12 +271,18 @@ export const Loading = {<Button variant="primary" loading>Primary</Button>+ <Button variant="secondary" loading>+ Secondary+ </Button><Button variant="outline" loading>Outline</Button><Button variant="destructive" loading>Destructive</Button>+ <Button variant="destructive-outline" loading>+ Destructive outline+ </Button><Button size="icon" loading aria-label="Delete"><TrashIcon /></Button>diff --git a/packages/quill/packages/primitives/src/button.tsx b/packages/quill/packages/primitives/src/button.tsxindex 661d7c5a2d89..b69f8728b28b 100644--- a/packages/quill/packages/primitives/src/button.tsx+++ b/packages/quill/packages/primitives/src/button.tsx@@ -14,8 +14,10 @@ const buttonVariants = cva(variant: {default: 'quill-button--variant-default',primary: 'quill-button--variant-primary',+ secondary: 'quill-button--variant-secondary',outline: 'quill-button--variant-outline',destructive: 'quill-button--variant-destructive',+ 'destructive-outline': 'quill-button--variant-destructive-outline',link: 'quill-button--variant-link','link-muted': 'quill-button--variant-link-muted',},@@ -84,7 +86,6 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(// readers can reach it and announce busy. Activation stays blocked.focusableWhenDisabled={loading ? true : focusableWhenDisabled}-className={cn(buttonVariants({ variant, size, className, focusableWhenDisabled, left }))}{...props}>diff --git a/packages/quill/packages/tokens/src/colors.ts b/packages/quill/packages/tokens/src/colors.tsindex f428770977e3..fa0708222c3d 100644--- a/packages/quill/packages/tokens/src/colors.ts+++ b/packages/quill/packages/tokens/src/colors.ts@@ -141,7 +141,7 @@ export function buildSemanticColors(): Record<string, ColorTuple> {'completed-foreground': [oklch(0.46, 0.25, 287.35), oklch(0.81, 0.06, 301.45), 'text-completed-foreground'],// ── Borders & rings (theme-derived) ───────────- border: [surface(0.9, 0.8, 'light'), surface(0.27, 1.2, 'dark'), 'border-border'],+ border: [surface(0.88, 0.8, 'light'), surface(0.27, 1.2, 'dark'), 'border-border'],input: [surface(0.81, 0.5, 'light'), surface(0.3, 1.5, 'dark'), 'border-input'],ring: [oklch(0.446, 0.03, 257), oklch(0.709, 0, 0), 'border-ring'],