The best way to control Claude Code, Codex and more from any computer or phone
Fix disabled git action tooltip hover handling
- Use the quick action button itself as the popover trigger - Keep hover tooltips working on disabled controls via pointer-events override - Remove focus/blur tab-stop handlers from disabled tooltip wrappers
Julius Marminge committed
Feb 14, 2026 at 22:38 UTC
7690837f38c56b79d26f61b16fc60ad671dcc1ee
1 file changed
+7
-18
apps/web/src/components/GitActionsControl.tsx
+7
-18
@@ -459,26 +459,18 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
459
<Popover open={isQuickActionPopoverOpen} onOpenChange={setIsQuickActionPopoverOpen}>
460
<PopoverTrigger
461
render={
462
- <span
463
- className="inline-flex cursor-not-allowed"
464
- onBlur={() => setIsQuickActionPopoverOpen(false)}
465
- onFocus={() => setIsQuickActionPopoverOpen(true)}
462
+ <Button
463
+ variant="outline"
464
+ size="xs"
465
+ disabled={isGitActionRunning || quickAction.disabled}
466
+ className="cursor-not-allowed disabled:cursor-not-allowed disabled:pointer-events-auto"
467
onMouseEnter={() => setIsQuickActionPopoverOpen(true)}
468
onMouseLeave={() => setIsQuickActionPopoverOpen(false)}
468
- tabIndex={0}
469
/>
470
}
471
>
472
- <Button
473
- variant="outline"
474
- size="xs"
475
- disabled={isGitActionRunning || quickAction.disabled}
476
- className="cursor-not-allowed disabled:cursor-not-allowed"
477
- onClick={runQuickAction}
478
- >
479
- <GitQuickActionIcon quickAction={quickAction} />
480
- {quickAction.label}
481
- </Button>
472
+ <GitQuickActionIcon quickAction={quickAction} />
473
+ {quickAction.label}
474
</PopoverTrigger>
475
<PopoverPopup tooltipStyle side="bottom" align="start">
476
{quickActionDisabledReason}
@@ -522,11 +514,8 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
514
render={
515
<span
516
className="inline-flex w-full cursor-not-allowed"
525
- onBlur={() => setOpenDisabledMenuItemId(null)}
526
- onFocus={() => setOpenDisabledMenuItemId(item.id)}
517
onMouseEnter={() => setOpenDisabledMenuItemId(item.id)}
518
onMouseLeave={() => setOpenDisabledMenuItemId(null)}
529
- tabIndex={0}
519
/>
520
}
521
>