Skip to content

Deactivate a menu button as soon as its panel is dismissed - #6251

Merged
fatadel merged 3 commits into
firefox-devtools:mainfrom
fatadel:issue-6243
Aug 10, 2026
Merged

Deactivate a menu button as soon as its panel is dismissed#6251
fatadel merged 3 commits into
firefox-devtools:mainfrom
fatadel:issue-6243

Conversation

@fatadel

@fatadel fatadel commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

The dismissed button kept its active background until ArrowPanel's 400ms closing timeout had run, so two buttons looked active at once. closePanel now clears the open state when the close starts, leaving the animation to ArrowPanel.

Closes #6243

Profile

@fatadel
fatadel requested review from canova and mstange August 10, 2026 12:14
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.73%. Comparing base (1198e50) to head (d9c5eb6).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6251   +/-   ##
=======================================
  Coverage   83.73%   83.73%           
=======================================
  Files         350      350           
  Lines       37523    37524    +1     
  Branches    10543    10552    +9     
=======================================
+ Hits        31420    31421    +1     
  Misses       5676     5676           
  Partials      427      427           

☔ 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.

@canova canova 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.

Looks good thanks!

Comment thread src/components/shared/ButtonWithPanel/index.tsx
The dismissed button kept its active background until ArrowPanel's
400ms closing timeout had run, so two buttons looked active at once.
closePanel now clears the open state when the close starts, leaving
the animation to ArrowPanel.

Closes firefox-devtools#6243
@fatadel
fatadel enabled auto-merge (squash) August 10, 2026 16:51
@fatadel
fatadel merged commit c180d3c into firefox-devtools:main Aug 10, 2026
21 checks passed
@fatadel
fatadel deleted the issue-6243 branch August 10, 2026 16:52
@canova canova mentioned this pull request Aug 10, 2026
canova added a commit that referenced this pull request Aug 10, 2026
Changes:

[fatadel] Create the Network track from the timeline-network schema
display location (#6224)
[Markus Stange] Only call `getRawFrameTableBuilderWithExistingContents`
once per symbolication batch. (#6233)
[fatadel] Improve discoverability of downloading a local profile (#6216)
[Nazım Can Altınova] Handle the cli daemon startup failures more
gracefully with better errors (#6241)
[Nazım Can Altınova] Add the ability to apply source maps from the CLI
(#6229)
[Nazım Can Altınova] Handle Text and Log marker payloads with their
marker schema (#6247)
[Nazım Can Altınova] Bump the Gecko profile version to make sure that
the Text and Log marker changes are picked up in the frontends (#6252)
[fatadel] Deactivate a menu button as soon as its panel is dismissed
(#6251)
[Nazım Can Altınova] 🔃 Sync: l10n -> main (August 10, 2026) (#6253)
[Nazım Can Altınova] Bump profiler-cli version to 0.8.0 (#6254)

And special thanks to our localizers:

de: Ger
de: Michael Köhler
el: George kitsoukakis
en-CA: chutten
en-CA: Saurabh
en-GB: Ian Neal
es-CL: ravmn
fy-NL, nl: Fjoerfoks
fr: Théo Chevalier
fy-NL: Fjoerfoks
ia: Melo46
it: Francesco Lodolo [:flod]
nl: Fjoerfoks
ru: michellemelsspam
ru: Valery Ledovskoy
tr: giray
tr: Selim Şumlu
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.

Menu item should lose its background color as early as possible

2 participants