Closed Bug 2061803 Opened 3 months ago Closed 1 month ago

Inconsistent menu height behavior in account menu secondary views

Categories

(Firefox :: Menus, enhancement, P3)

enhancement

Tracking

()

VERIFIED FIXED
161 Branch
Tracking Status
firefox161 --- verified

People

(Reporter: lbybee, Assigned: nsharpley)

References

Details

(Whiteboard: [fidefe-post-nova])

Attachments

(2 files, 1 external file)

In current Nightly, secondary menus in the account menu are constrained to the height of their content, while the primary menu sets its own (taller) height. This makes the account menu the only surface where menu height visibly changes as you navigate between views.

The open question: should menu height behavior be consistent across all menus as a system-level rule (e.g., all menus size to content, or all hold a fixed height), rather than deciding per-surface? Right now the account menu diverges from every other menu, and we'd like the decision made at the design-system level.

Note: the constrained secondary menus match the figma spec so that's why this ticket is listed as an enhancement for a design system perspective

Steps to observe:
In Nightly (155+), open the account menu (avatar toolbar button)
Navigate into a secondary menu (e.g., Secure sync → device, or Profiles)
Observe the menu height shrinking/growing to fit content, unlike other Firefox menus

Blocks: 2055783

Here's what we currently leaning towards, but need to discuss:

  • Hamburger menu: uniform height of all the submenus within it.
  • Account menu submenus: content-specific height of all the submenus

Both menus already work mostly this way, I am attaching screenshots of instances when they don't:

  • Account menu: All profiles
  • Hamburger menu: Profiles
Severity: -- → S3
Priority: -- → P3
Whiteboard: [fidefe-post-nova]
Blocks: 2084630

PanelMultiView already holds a subview at the height of the view it was opened from, through an inline min-height on the view container and, in the app menu, lockpanelvertical on appMenu-mainView. The profiles, secure sync and device recent tabs views opted out of that with height: fit-content and min-height: 0 !important, which is why they were the only places where the menu visibly resized while navigating. Dropping those overrides lets the shared mechanism apply to them as well, and removes the :has() selector that needed a stylelint exception.

Assignee: nobody → nsharpley
Status: NEW → ASSIGNED
Pushed by nsharpley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3c266b1e53dc https://hg.mozilla.org/integration/autoland/rev/ea0930c5ffc8 Keep the profiles and secure sync subviews at the height of the menu they open from. r=desktop-theme-reviewers,mossop,mstriemer
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch

Reproduced the initial issue using Firefox 159.0.1 on Windows 11 - I can confirm the height difference between the Account menu and the secondary menus, such as the Profiles and Secure Sync menus.

Verified as fixed using the latest Nightly 161.0a1 on Windows 11, macOS 26 and Ubuntu 24.04 - the primary Account menu and the secondary menus now have the same height.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-done-c161/b160]
QA Contact: sbadau
Duplicate of this bug: 2055783
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: