feat(ui): InlineAction for small text actions, with a 44 px touch floor

Thirty-three hand-rolled underlined text links and buttons (Open
schedule, Select all, View all, Retry, Learn more, the device-code copy
action, ...) carried three different focus rings, none on half of them,
and a 16 px target on a phone. They now render through one InlineAction
primitive: tone primary / muted / foreground, size xs / sm, a focus ring,
and min-h-11 on a coarse pointer so the desktop layout does not move. A
structural test refuses a new hand-rolled copy.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 13:03:15 +02:00
1 parent ce8074ad08
commit 60be63bcd1
33 files changed
+484 -222

No files matched your search

@@ -22,6 +22,7 @@ import {
useHandoverDecision,
type HandoverDecisionState,
} from "@/lib/queries/use-handover-decision";
import { InlineAction } from "@/components/ui/inline-action";
type PendingDecision = NonNullable<HandoverDecisionState["pending"]>;
@@ -191,13 +192,14 @@ export function HandoverNotificationHint() {
<p className="text-sm">
{t("recordSharing.handoverDecision.notificationsBody")}
</p>
<Link
href="/settings/notifications"
className="text-primary text-sm underline"
data-slot="handover-notification-link"
>
{t("recordSharing.handoverDecision.notificationsAction")}
</Link>
<InlineAction asChild size="sm" className="underline">
<Link
href="/settings/notifications"
data-slot="handover-notification-link"
>
{t("recordSharing.handoverDecision.notificationsAction")}
</Link>
</InlineAction>
</div>
</div>
);