Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(blocks): add keyboard accessibility to tooltip triggers
Signed-off-by: Mini Jeong <mini.jeong@navercorp.com>
  • Loading branch information
minijeong-log committed Apr 9, 2026
commit 48919823109f92e8d34914e18fa8ec2fb5c0060c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const renderLabel = (
{config.tooltip && (
<Tooltip.Root>
<Tooltip.Trigger asChild>
<span className='inline-flex'>
<span className='inline-flex' tabIndex={0} role='button'>
<Info className='h-3 w-3 flex-shrink-0 cursor-pointer text-muted-foreground' />
</span>
Comment on lines +255 to +258
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Tooltip trigger not keyboard-accessible

The <span> wrapping the Info icon has no tabIndex, so keyboard-only users cannot focus it to trigger the tooltip. Adding tabIndex={0} (and a matching role) makes it reachable via Tab. Note: the existing AlertTriangle trigger below uses the same pattern, so this affects both.

Suggested change
<Tooltip.Trigger asChild>
<span className='inline-flex'>
<Info className='h-3 w-3 flex-shrink-0 cursor-pointer text-muted-foreground' />
</span>
<span className='inline-flex' tabIndex={0} role='button'>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in:

  • e2b2206 — added tabIndex={0} and role='button' to the Info tooltip trigger
  • 4891982 — also applied the same fix to the existing AlertTriangle trigger as noted

</Tooltip.Trigger>
Expand All @@ -269,7 +269,7 @@ const renderLabel = (
!wandState?.isStreaming && (
<Tooltip.Root>
<Tooltip.Trigger asChild>
<span className='inline-flex'>
<span className='inline-flex' tabIndex={0} role='button'>
<AlertTriangle className='h-3 w-3 flex-shrink-0 cursor-pointer text-destructive' />
</span>
</Tooltip.Trigger>
Expand Down
Loading