Repository navigation
fix(studio): table row focus and hover - #40454
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
| disabled | ||
| ? -1 | ||
| : 0 | ||
| } |
There was a problem hiding this comment.
This just repeats the same checks as the disabled prop above. We should combine the two into a variable.
| <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} | ||
| > |
There was a problem hiding this comment.
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')} |
There was a problem hiding this comment.
I think this absolutely positioned button was causing Safari stacking context issues.
| handleBucketNavigation(bucket.id, event) | ||
| } | ||
| }} | ||
| tabIndex={0} |
There was a problem hiding this comment.
I believe this is necessary for Safari.
|
Studio E2E Results
Last updated: Friday 14, November, 2025 04:39:10 (UTC) |
joshenlim
left a comment
There was a problem hiding this comment.
Verified changes on preview for both chrome and safari!
* fix table row focus and hover * add basic tabIndex * fix buttons * other table types * Minor clean up --------- Co-authored-by: Joshen Lim <[email protected]>
What kind of change does this PR introduce?
Fix for Safari
What is the current behavior?
What is the new behavior?
Additional context
I believe https://github.com/supabase/supabase/pull/40230/files introduced this bug with the
absolutebutton.To test
Please use (at least) both Safari and Chrome to test changes.