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:
@@ -22,10 +22,6 @@ import {
|
||||
} from "@/components/ui/tooltip"
|
||||
import useCustomToast from "@/hooks/useCustomToast"
|
||||
import { transitions } from "@/lib/motion"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
/** The icon buttons here and in the flow dock are the same touch target. */
|
||||
const ICON = "size-11 text-muted-foreground md:size-8"
|
||||
|
||||
/**
|
||||
* The bar over the flows and dashboards lists: find one, publish what is
|
||||
@@ -113,8 +109,8 @@ export function OverviewToolbar({
|
||||
<Button
|
||||
ref={trigger}
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={ICON}
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
aria-label={searchLabel}
|
||||
onClick={() => setOpen(true)}
|
||||
>
|
||||
@@ -130,8 +126,8 @@ export function OverviewToolbar({
|
||||
{selectedCount > 0 ? (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={cn(ICON, "text-destructive")}
|
||||
size="icon-touch"
|
||||
className="text-destructive"
|
||||
aria-label={`Delete ${selectedCount} selected`}
|
||||
data-testid="delete-selected"
|
||||
onClick={onDeleteSelected}
|
||||
@@ -142,8 +138,8 @@ export function OverviewToolbar({
|
||||
<DialogTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={ICON}
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
aria-label={createLabel}
|
||||
data-testid={createTestId}
|
||||
>
|
||||
@@ -164,8 +160,8 @@ export function OverviewToolbar({
|
||||
<span>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className={ICON}
|
||||
size="icon-touch"
|
||||
className="text-muted-foreground"
|
||||
disabled={draftCount === 0 || publishing}
|
||||
onClick={onPublishAll}
|
||||
aria-label="Publish all changes"
|
||||
|
||||
Reference in New Issue
Block a user