Closed Bug 1699399 Opened 3 years ago Closed 3 years ago

Unreadable <select> fields (menulist / popups) when using the Proton dark theme

Categories

(Firefox :: Menus, defect, P1)

Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
89 Branch
Tracking Status
firefox87 --- disabled
firefox88 --- disabled
firefox89 --- verified

People

(Reporter: RT, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-context-menus])

Attachments

(2 files)

Priority: -- → P2
Priority: P2 → P1

Please set the whiteboard tag when you file bugs to ensure they show up in JIRA and our other tracking tools.

The root cause here is the same as bug 1692593.

Severity: -- → S2
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop
See Also: → 1692593
Whiteboard: [proton-context-menus]
Summary: White text on white background issue when using the Proton dark theme → Unreadable <select> fields (menulist / popups) when using the Proton dark theme
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

This fix is in three parts:

  • ensure SelectParent's concept of the 'UA style' of the dropdown matches with the dark theme.
    This ensures that we don't ignore black-text-on-white-bg page styles in dark mode because
    they match the default styles, and end up with unreadable text because only one of the
    foreground/background colours exactly matches the UA style. This isn't a complete fix for
    the problem of contrast in this menu, but that isn't really in-scope here...
  • ensure the foreground colour that the win10 menu sets is on the menupopup, rather than the
    scrollbox. On the scrollbox it would cause the individual menuitems to inherit that, rather
    than the colour set by SelectParent on the menupopup.
  • fix a broken variable reference for the foreground colour for hovered (_menuactive) items in
    menu.css, without which the foreground colour on the hover/active item was still wrong.
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/31a4eb1729a6
fix content select dropdown interaction with the Windows 10 proton context menu styling, r=mconley
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
See Also: → 1702258

Reproduced the initial issue shown in comment 0 using an old Nightly from 2021-03-18, verified that using latest Nightly this is no longer an issue.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: