Button icon-touch/sm-touch sizes replace the repeated touch-target classes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 22:02:35 +02:00
co-authored by Claude Opus 5.5
parent 9c75d7ae13
commit 8d158169e5
8 changed files with 49 additions and 61 deletions
+4
View File
@@ -30,6 +30,10 @@ const buttonVariants = cva(
icon: "size-9",
"icon-sm": "size-8",
"icon-lg": "size-10",
// Touch targets: 44px below `md`, 32px above (DESIGN-GUIDELINES.md →
// Responsive).
"icon-touch": "size-11 md:size-8",
"sm-touch": "h-11 md:h-8 rounded-full gap-1.5 px-3 has-[>svg]:px-2.5",
},
},
defaultVariants: {