Closed Bug 1701637 Opened 4 years ago Closed 4 years ago

[macOS] Bookmarks toolbar button submenu item hover states are low-contrast

Categories

(Firefox :: Bookmarks & History, defect, P2)

Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox87 --- unaffected
firefox88 --- unaffected
firefox89 --- verified
firefox90 --- verified

People

(Reporter: bugzilla, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [proton-door-hangers][priority:2a] [proton-uplift])

Attachments

(5 files)

The submenus in the bookmarks toolbar button are styled like native menus, at least on macOS. We appear to apply the Secondary Hover bgcolor to them on hover. This is very low-contrast. We might consider using a blue/system Highlight hover bgcolor for the items in these submenus.

Set release status flags based on info from the regressing bug 1697533

This is not an issue in Dark mode, where we style the submenu background.

Martin, is this a platform issue?

Flags: needinfo?(mbalfanz)
Priority: -- → P2

Those are not native menus, so I don't think it's a platform issue.

Also FYI, on 10.15 the contrast appears fine.

Flags: needinfo?(mbalfanz)
Whiteboard: [proton-door-hangers] → [proton-door-hangers][priority:2c]
Whiteboard: [proton-door-hangers][priority:2c] → [proton-door-hangers][priority:2a]

Harry, can you confirm STR here? Are you still seeing this, and if so, does this only happen on big sur?

Flags: needinfo?(htwyford)

Yes, I'm still seeing this on the latest Nightly.

STR:

  1. In the Customize screen, add the Bookmarks Menu button to the toolbar.
  2. Click the bookmarks toolbar button to open the bookmarks panel.
  3. Hover a folder in the panel to open its submenu.
  4. Hover a bookmark in the submenu.

I'm not sure about macOS versions before Big Sur. I don't have any machines running macOS < 11. Martin's comment 4 suggests it's not an issue there.

Flags: needinfo?(htwyford)
OS: Unspecified → macOS
Hardware: Unspecified → Desktop
Summary: Bookmarks toolbar button submenu item hover states are low-contrast → [macOS 11 / big sur] Bookmarks toolbar button submenu item hover states are low-contrast
Attached image default-vs-light.png

I tried this a little bit more, and I'm also able to reproduce this on 10.15.

To reproduce the issue, it's important to pick the default theme. See the comparison between default and light theme in the attachment. (Also note the issue with the corners in the default theme, it's not really round.)

Summary: [macOS 11 / big sur] Bookmarks toolbar button submenu item hover states are low-contrast → [macOS] Bookmarks toolbar button submenu item hover states are low-contrast

Thanks for the clarifications.

This appears to be because the first menupopup gets the places-popup-arrow binding which gets styled like an arrow panel (except we removed the arrows for proton...) and the submenus all get places-popup. This is the same root cause as bug 1702945.

We can probably fix the macOS case with yet more custom CSS, but it's not a very sustainable setup, the whole "Let's take a menupopup and make it look like a panel but behave like a menu..." thing is just a recipe for brokenness. :-\

See Also: → 1702945
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #9220148 - Attachment description: WIP: Bug 1701637 - fix bookmarks menu button submenu styling in proton, r?mconley → Bug 1701637 - fix bookmarks menu button submenu styling in proton, r?mconley
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/29a1f81830bb fix bookmarks menu button submenu styling in proton, r=mconley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Romain, do you want us to uplift this? It's a pretty straightforward CSS change, marked p2a.

Flags: needinfo?(rtestard)

(In reply to :Gijs (he/him) from comment #12)

Romain, do you want us to uplift this? It's a pretty straightforward CSS change, marked p2a.

Passing this to Shilpa.

Flags: needinfo?(rtestard) → needinfo?(smohanty)
Flags: needinfo?(smohanty)

Request for Uplift since this is a small change. I'l remove the wontfix flag.

Comment on attachment 9220148 [details]
Bug 1701637 - fix bookmarks menu button submenu styling in proton, r?mconley

Beta/Release Uplift Approval Request

  • User impact if declined: Bookmarks menu button subfolder items are not readable on some versions of macOS
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0. Note that the fix affects Windows and Linux too, so it'd be good to check that the menus look OK there too.
  • List of other uplifts needed: n/a
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): CSS-only changes that only affect the bookmarks menu button
  • String changes made/needed: Nope
Attachment #9220148 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9220148 [details]
Bug 1701637 - fix bookmarks menu button submenu styling in proton, r?mconley

Approved for 89.0b12.

Attachment #9220148 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]
Whiteboard: [proton-door-hangers][priority:2a] → [proton-door-hangers][priority:2a] [proton-uplift]

Verified the fix on Firefox 89.0b13 and Nightly 90.0a1 using macOS 11, Windows 10 and Ubuntu 18.04. The issue is not reproducing anymore and the fix didn't cauze any additional issues.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: