Skip to content

fix(studio): table row focus and hover - #40454

Merged
joshenlim merged 5 commits into
masterfrom
dnywh/fix/bucket-table-keyboard-focus
Nov 14, 2025
Merged

joshenlim merged 5 commits into
masterfrom
dnywh/fix/bucket-table-keyboard-focus

Conversation

@dnywh

@dnywh dnywh commented Nov 14, 2025 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Fix for Safari

What is the current behavior?

  • Only the last table row across all three bucket types (files, analytics, vectors) are selectable by mouse
  • No table rows are selectable by keyboard

What is the new behavior?

  • Fixes for the above whilst maintaining existing functionality in Chrome

Additional context

I believe https://github.com/supabase/supabase/pull/40230/files introduced this bug with the absolute button.

To test

Please use (at least) both Safari and Chrome to test changes.

@dnywh
dnywh requested a review from a team as a code owner November 14, 2025 01:42
@supabase

supabase Bot commented Nov 14, 2025

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Nov 14, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
studio-self-hosted Ready Ready Preview Comment Nov 14, 2025 4:32am
studio-staging Ready Ready Preview Comment Nov 14, 2025 4:32am
6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
studio Ignored Ignored Nov 14, 2025 4:32am
cms Skipped Skipped Nov 14, 2025 4:32am
design-system Skipped Skipped Nov 14, 2025 4:32am
docs Skipped Skipped Nov 14, 2025 4:32am
ui-library Skipped Skipped Nov 14, 2025 4:32am
zone-www-dot-com Skipped Skipped Nov 14, 2025 4:32am

disabled
? -1
: 0
}

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.

This just repeats the same checks as the disabled prop above. We should combine the two into a variable.

Comment on lines +160 to +171
<TableRow
key={id}
className={cn('relative cursor-pointer h-16', 'inset-focus')}
onClick={(event) => handleBucketNavigation(name, event)}
onKeyDown={(event) => {
if (event.key === 'Enter' || event.key === ' ') {
event.preventDefault()
handleBucketNavigation(name, event)
}
}}
tabIndex={0}
>

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.

Removing the absolutely positioned button inside a table cell and making the row itself interactive.

<TableCell>
<p className="whitespace-nowrap max-w-[512px] truncate">{name}</p>
<button
className={cn('absolute inset-0', 'inset-focus')}

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.

I think this absolutely positioned button was causing Safari stacking context issues.

handleBucketNavigation(bucket.id, event)
}
}}
tabIndex={0}

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.

I believe this is necessary for Safari.

@github-actions

github-actions Bot commented Nov 14, 2025 •

Copy link
Copy Markdown
Contributor

Studio E2E Results

  • Total: 1
  • Passed: 1
  • Failed: 0
  • Skipped: 0
  • Timed out: 0
  • Interrupted: 0
  • Flaky: 0
  • Duration: 2.0s

Artifacts: https://github.com/supabase/supabase/actions/runs/19354276842

Last updated: Friday 14, November, 2025 04:39:10 (UTC)

@joshenlim joshenlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified changes on preview for both chrome and safari!

@joshenlim
joshenlim merged commit 1dd3ea1 into master Nov 14, 2025
@joshenlim
joshenlim deleted the dnywh/fix/bucket-table-keyboard-focus branch November 14, 2025 04:39
Rodriguespn pushed a commit that referenced this pull request Nov 25, 2025
* fix table row focus and hover

* add basic tabIndex

* fix buttons

* other table types

* Minor clean up

---------

Co-authored-by: Joshen Lim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants