Skip to content

Fix topic-icon popovers rendering under later rows in Safari - #133

Merged
dutow merged 1 commit into
hackorum-dev:mainfrom
ImTheKai:safari-popover-layover-fix
Aug 28, 2026
Merged

Fix topic-icon popovers rendering under later rows in Safari#133
dutow merged 1 commit into
hackorum-dev:mainfrom
ImTheKai:safari-popover-layover-fix

Conversation

@ImTheKai

@ImTheKai ImTheKai commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The topics list is a <table> with border-collapse: collapse, and Safari ignores z-index on <tr> elements in that case. The earlier fix in fixing the popover behavior, so it doesn't show as transparent, because later rows are in the front #54 gave the open row position: relative + z-index, which works in Chrome/Firefox but not Safari — a popover taller than its row still rendered underneath the rows below it there, which is why the issue kept resurfacing.
  • Reworked hover_popover_controller.js to detach the popover to <body> and pin it with position: fixed (computed from the trigger's bounding box) while it's open, instead of relying on table row stacking at all. This sidesteps the Safari table quirk entirely.
  • Removed the now-dead .topic-row.is-popover-open z-index rule from topics.css.

🤖 Generated with Claude Code

…n Safari

The topics list is a <table> with border-collapse: collapse, and Safari
ignores z-index on <tr> elements in that case. Our previous fix gave the
open row position: relative + z-index, which works in Chrome/Firefox but
not Safari, so a popover taller than its row kept rendering underneath
the rows below it there.

Instead of relying on table stacking at all, the hover-popover controller
now detaches the popover to <body> and pins it with position: fixed,
computed from the trigger's bounding box, while it's open, then moves it
back on hide. This avoids the table's stacking context entirely, so it
renders correctly regardless of browser. Verified with Playwright in both
Chromium and WebKit.

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
@dutow
dutow merged commit fcc7e43 into hackorum-dev:main Aug 28, 2026
5 checks passed
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