Closed Bug 1506105 Opened 6 years ago Closed 6 years ago

Buttons and icons are not visible in High Contrast mode

Categories

(Toolkit :: Performance Monitoring, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla65
Tracking Status
firefox-esr60 --- unaffected
firefox63 --- unaffected
firefox64 --- verified
firefox65 --- verified

People

(Reporter: gpalko, Assigned: florian)

References

Details

Attachments

(3 files)

Attached image highWhite.PNG
[Environment:]
Nightly 65.0a1 BuildId 20181108220756

[Steps:]
Enable a high contrast theme on the operating system(High Contrast Black/White)
1. Open Nightly
2. Open about:performance

[Actual Result:]
 Icons are not visible
 Buttons are not visible, the users are not able to close tabs, navigate to add-on detail page or open subsections in the list(see attached screenshot

[Expected Result:]
 The feature should be usable in high contrast mode
OS: Unspecified → Windows
Attached patch PatchSplinter Review
Assignee: nobody → florian
Status: NEW → ASSIGNED
Comment on attachment 9025743 [details] [diff] [review]
Patch

Now that I verified the patch actually works on Windows in High Contrast mode, requesting review.

Background colors and images are not painted in high contrast mode. This patch changes them to using the content property on the pseudo elements. And then there are a few tweaks to maintain a (mostly) correct vertical centering.
Attachment #9025743 - Flags: review?(felipc)
Comment on attachment 9025743 [details] [diff] [review]
Patch

Review of attachment 9025743 [details] [diff] [review]:
-----------------------------------------------------------------

I think you should investigate doing more of the centering with the table layout (vertical-align and text-align), and replacing the action buttons and twisty with real xul:buttons with -moz-appeareance: none.. That will probably save a lot of headaches
Attachment #9025743 - Flags: review?(felipc) → review+
Pushed by florian@queze.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f9e9cf90de3d
Display the clickable icons using the content property instead of as a background image so that they are visible in high contrast mode, r=felipe.
https://hg.mozilla.org/mozilla-central/rev/f9e9cf90de3d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Comment on attachment 9025743 [details] [diff] [review]
Patch

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: bug 1496782, bug 1498185

User impact if declined: Icons that act as buttons are invisible in high contrast mode, making the new about:performance UI unusable for these users.

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: Verify that clickable icons are now visible in high contrast mode. I'm confident that this is fixed. I think we could use a bit of manual QA to verify that the icons are still displayed at the correct places. Vertical alignment may be slightly off for some themes/font-sizes.

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): Low risk because it's a relatively simple CSS only change. The little risk we have is around vertical aligment of icons that may be slightly off for non-default font sizes.

Note: unless new serious issues are discovered, this is the last uplift request for 64 related to about:performance (all dependencies of bug 1478831 are now resolved).

String changes made/needed: none
Attachment #9025743 - Flags: approval-mozilla-beta?
Comment on attachment 9025743 [details] [diff] [review]
Patch

about:performance css fix, approved for 64.0b12
Attachment #9025743 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Rebased patch to avoid the conflict caused by https://hg.mozilla.org/mozilla-central/rev/f790f10bca33#l2.1 that landed on central but wasn't needed on beta.
Verified, that the issue is no longer reproducing on Nightly 65(20181122100048).
Tested on Beta 64b12(20181122182000) and I noticed, that even with High contrast turned off, the 'arrow' button for displaying sub-frames is invisible, but clickable(It's displayed correctly in Nightly and Beta 64b11). Could be a regression caused by the patch rebased on Beta?
Flags: needinfo?(florian)
(In reply to Gyula Palko from comment #11)
> Tested on Beta 64b12(20181122182000) and I noticed, that even with High
> contrast turned off, the 'arrow' button for displaying sub-frames is
> invisible, but clickable(It's displayed correctly in Nightly and Beta
> 64b11). Could be a regression caused by the patch rebased on Beta?

Yes, my beta rebase is broken. I included part of the patch from bug 1507114, but the new CSS from it depends on the twisty image being in a span node rather than an img node (I don't know why). Just applying this change on beta fixes it: https://hg.mozilla.org/mozilla-central/rev/f790f10bca33#l1.37
Flags: needinfo?(florian)
Verified, that the issue is no longer reproducible on Beta 64b13(20181126173133).
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: