Closed Bug 1722833 Opened 6 months ago Closed 3 months ago

Pressed native buttons on macOS Monterey use white text on light gray

Categories

(Core :: Widget: Cocoa, defect, P2)

Firefox 92
All
macOS
defect

Tracking

()

VERIFIED FIXED
95 Branch
Tracking Status
firefox92 --- wontfix
firefox95 --- verified

People

(Reporter: sam, Assigned: mstange)

References

(Blocks 1 open bug)

Details

(Whiteboard: [mac:integration])

Attachments

(4 files)

Attached image pressed-button.png

With macOS Monterey in light mode, press any native-styled push button in Firefox, such as in Help > Troubleshoot Mode, or Library > Add Bookmark. The text will turn white, but on a light gray background, so it is unreadable.

This is likely due to the pressed button and pressed default button style changes in Monterey.

In the attached example, "Refresh Nightly" is pressed. The issue also occurs if a default button, such as "Open", is pressed (however, I believe in AppKit apps the default button stays blue).

Blocks: monterey
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S2
Priority: -- → P2
Whiteboard: [mac:integration]
Attachment #9246170 - Attachment description: WIP: Bug 1722833 - WIP: Tweak button and default button rendering and text color in various states to match macOS Monterey. Needs testing on Big Sur. → WIP: Bug 1722833 - WIP: Tweak button and default button rendering and text color in various states to match macOS Monterey.
Assignee: nobody → mstange.moz
Attachment #9246170 - Attachment description: WIP: Bug 1722833 - WIP: Tweak button and default button rendering and text color in various states to match macOS Monterey. → Bug 1722833 - Tweak default button :active state rendering. r=#desktop-theme-reviewers,#mac-reviewers
Status: NEW → ASSIGNED
Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/de071c6d60a7
Tweak default button :active state rendering. r=mac-reviewers,spohl
https://hg.mozilla.org/integration/autoland/rev/f718eaf8816e
Add nsCocoaFeatures::OnMontereyOrLater(). r=mac-reviewers,spohl
https://hg.mozilla.org/integration/autoland/rev/40fe290c7604
Make MozButtonactivetext use NSColor.controlTextColor on macOS 12+. r=mac-reviewers,spohl
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

Reproduced with Fx 93 on macOS 12.0.1.
Verified fixed under the same macOS version with Fx 95.0a1 (20211021093631).

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