Commit Graph

8 Commits

Author SHA1 Message Date
90930d8f78 feat(htmx-css): ToggleGroup support + padding/primary parity
Generator (scripts/generate-htmx-css.ts): track `viaVariants` per slot so
slots that compose another component's variant system (e.g. ToggleGroupItem
via toggleVariants) inherit the referenced CVA's base + variant rules under
their own selector. Previously toggle-group-item's CSS contained only its
override classes, shipping with no padding/height/hover/active state.

Toggle (components/ui/toggle.tsx):
  - data-[state=on] now uses bg-primary (orange) instead of bg-accent (grey),
    matching every other "commit" affordance in the palette.
  - Horizontal padding aligned with Button: px-4/px-3/px-6 per size, plus
    has-[>svg]:px-* for icon-only toggles.

ToggleGroup (components/ui/toggle-group.tsx): drop min-w-0 flex-1 shrink-0
from the item override. Items now size to content instead of being clamped
into equal narrow columns where longer labels overflowed the bg box.

Showcase: add ToggleGroup section to the React page (component-matrix.tsx)
and 1:1 HTMX mirror (public/htmx.html) with a new JS bridge branch for
single/multi-select. compare-all.sh extended with the new section; 22/22
pass at ≥99.97%.

Docs: GAPS.md captures the generator gap, overflow root cause, color
rationale, and padding parity with before/after numbers.
2026-04-24 14:43:55 -06:00
Juan
9a311ff9a5 design system token v0.6.1 2026-04-16 11:43:32 -05:00
Juan
ae3d219d58 design system token v0.6 2026-04-16 11:30:28 -05:00
Juan
b8168261a1 design system token v0.5 2026-04-16 10:58:11 -05:00
Juan
c4cc5a78b9 design system token v0.4.1 2026-04-13 18:06:53 -05:00
Juan
c1d4d55333 design system token v0.4 2026-04-13 17:46:30 -05:00
Juan
c3215945f2 design system token v0.1 2026-04-13 15:33:00 -05:00
0c21f55dda feat: first approach from tanel 2026-01-23 09:35:37 -05:00