Skip to content

Keep menu panels above the selected-marker tooltip#6125

Merged
fatadel merged 2 commits into
firefox-devtools:mainfrom
fatadel:issue-6102
Jun 25, 2026
Merged

Keep menu panels above the selected-marker tooltip#6125
fatadel merged 2 commits into
firefox-devtools:mainfrom
fatadel:issue-6102

Conversation

@fatadel

@fatadel fatadel commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

When a marker stayed selected, its sticky tooltip rendered on top of the Re-upload and other top-bar menu panels, covering them and intercepting clicks.

The panels already carry a higher z-index than tooltips (--z-arrow-panel above --z-tooltip), but .profileViewer set z-index: 0, creating a stacking context that trapped the panels at its own altitude. Tooltips render in the body-level #root-overlay layer, which paints later, so they always won regardless of the scale. Removing that z-index lets the panels and tooltips share the root stacking context, where the scale orders them correctly.

Closes #6102.


I've inspected the UI visually and it seems like there is no regression to me but please have another look yourself too.
Profile before / after

When a marker stayed selected, its sticky tooltip rendered on top of the
Re-upload and other top-bar menu panels, covering them and intercepting
clicks.

The panels already carry a higher z-index than tooltips (--z-arrow-panel
above --z-tooltip), but .profileViewer set z-index: 0, creating a
stacking context that trapped the panels at its own altitude. Tooltips
render in the body-level #root-overlay layer, which paints later, so
they always won regardless of the scale. Removing that z-index lets the
panels and tooltips share the root stacking context, where the scale
orders them correctly.

Closes firefox-devtools#6102
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.45%. Comparing base (add6b76) to head (6cd1672).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6125   +/-   ##
=======================================
  Coverage   83.45%   83.45%           
=======================================
  Files         342      342           
  Lines       36075    36075           
  Branches    10106    10095   -11     
=======================================
  Hits        30108    30108           
  Misses       5539     5539           
  Partials      428      428           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fatadel fatadel requested review from canova and mstange June 24, 2026 13:46

@mstange mstange left a comment

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.

Seems fine, let's give it a try!

@fatadel fatadel merged commit 876db19 into firefox-devtools:main Jun 25, 2026
23 checks passed
@fatadel fatadel deleted the issue-6102 branch June 25, 2026 10:22
@canova canova mentioned this pull request Jun 29, 2026
canova added a commit that referenced this pull request Jun 29, 2026
Changes:

[Nazım Can Altınova] Bump profiler-cli version to 0.3.0 (#6104)
[Markus Stange] First typed array: Allow profile.shared.stackTable.frame
to be an Int32Array (#6087)
[Nazım Can Altınova] Show more user friendly errors for unsupported
profile version in both the frontend and the cli (#6107)
[fatadel] Expose counter information in profiler-cli (#6084)
[Markus Stange] Split getSelfAndTotal. (#6113)
[Markus Stange] Add missing transform shortcut key handling for S
(focus-self) (#6117)
[Markus Stange] Remove unused isInverted prop from FlameGraphCanvas.
(#6116)
[Markus Stange] Change sidebar splitter CSS to only apply to the
sidebar, not to all splitters under .DetailsContainer (#6114)
[Markus Stange] Pass callNodeInfo to handleCallNodeTransformShortcut.
(#6115)
[Markus Stange] Move column declarations out into a separate file
(#6119)
[fatadel] Keep menu panels above the selected-marker tooltip (#6125)
[Nazım Can Altınova] Make sure to always sanitize source contents even
when no PII sanitization is requested (#6127)
[Markus Stange] Compute FlameGraphTiming rows lazily (#6126)
[Markus Stange] Create a non-connected FlameGraph component (#6118)
[Nazım Can Altınova] 🔃 Sync: l10n -> main (June 29, 2026) (#6130)

And special thanks to our localizers:

de: Michael Köhler
el: Jim Spentzos
en-GB: Ian Neal
es-CL: ravmn
fr: Théo Chevalier
fur: Fabio Tomat
fy-NL: Fjoerfoks
ia: Melo46
it: Francesco Lodolo [:flod]
nl: Mark Heijl
ru: Valery Ledovskoy
sv-SE: Luna Jernberg
zh-TW: Pin-guang Chen
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.

When a profiler marker remains selected, its panel is above the re-upload panel

2 participants