You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e22e7ca
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(web): stop borrowing ui class recipes in app code
Five app sites imported buttonVariants, toggleVariants or
selectTriggerVariants to make a foreign element look like a Button,
Toggle or Select field, which bypasses the component's variants and the
no-restyle lint. Each now renders the real component:
- The snooze schedule tabs and the publish SSH/HTTPS picker were
hand-built segmented controls; they are ToggleGroup, which is the
segmented control.
- The composer banner's chevron renders a Button as a span.
- The font-family and snapshot-sound pickers render through a new
SelectButton, the select-field look for a Menu or Combobox trigger.
App code can no longer import the *Variants functions (no-restricted-
imports in apps/web, outside components/ui). ButtonVariant is exported
as a type for the three pickers that forward a trigger variant.
Visible effect: the snooze tabs lose their Base UI tab semantics and
become a toggle group, matching every other segmented control.
Lowers the no-restyle ceiling from 628 to 624.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
0 commit comments