Closed Bug 1373341 Opened 8 years ago Closed 8 years ago

Two different blue highlight states needed for light and dark theme (downloading, bookmarking)

Categories

(Firefox :: Theme, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
Firefox 57
Iteration:
57.1 - Aug 15
Tracking Status
firefox57 --- verified

People

(Reporter: amylee, Assigned: sfoster)

Details

(Whiteboard: [photon-animation])

Attachments

(2 files)

We will need two different blue highlight states for downloads in the toolbar for light and dark themes in order to pass the WCAG 2.0 Level AA guidelines for colour contrast. See attached spec
Flags: qe-verify-
Priority: -- → P2
Summary: Two different blue highlight states needed for light and dark theme (download icon) → [ux] Two different blue highlight states needed for light and dark theme (download icon)
Summary: [ux] Two different blue highlight states needed for light and dark theme (download icon) → [ux] Two different blue highlight states needed for light and dark theme (downloading, bookmarking)
This is the "attention" color, defined as --toolbarbutton-icon-fill-attention in: http://searchfox.org/mozilla-central/source/browser/themes/shared/toolbarbutton-icons.inc.css#4
Assignee: nobody → amlee
Status: NEW → ASSIGNED
Iteration: --- → 56.2 - Jul 10
Priority: P2 → P1
Iteration: 56.2 - Jul 10 → 56.3 - Jul 24
Iteration: 56.3 - Jul 24 → 56.4 - Aug 1
Assignee: amlee → nobody
Status: ASSIGNED → NEW
Iteration: 56.4 - Aug 1 → ---
Flags: qe-verify- → qe-verify?
Priority: P1 → P2
Summary: [ux] Two different blue highlight states needed for light and dark theme (downloading, bookmarking) → Two different blue highlight states needed for light and dark theme (downloading, bookmarking)
Whiteboard: [photon-animation] [ux] → [photon-animation]
Assignee: nobody → sfoster
Status: NEW → ASSIGNED
Iteration: --- → 56.4 - Aug 1
Priority: P2 → P1
Flags: qe-verify? → qe-verify+
QA Contact: jwilliams
Iteration: 56.4 - Aug 1 → 57.1 - Aug 15
The color changes are simple enough, but this blue is also baked into bookmark-animation.svg and library-bookmark-animation.svg. We'll need to use context-fill and context-stroke instead of hard-coding the color values into the SVG so that the theme is able to extend into the animations. That means we have a strictly limited palette of 2 colors (plus black & white) and degrees of transparency to work with. Our optimization tools can do the actual substitutions, but we may need to re-draw these animations to fit these constraints?
QA Contact: jwilliams → stefan.georgiev
I double-checked the blue color change. This new blue is in fact the one we should be using for light themes. In bookmark-animation.svg, there were several shades of blue. I've replaced these with the single context-stroke with no visible (to my eyes) impact. The same blue was used in #customization-done-button, so for consistency's sake I've used the --toolbarbutton-icon-fill-attention here too, but probably we either need another variable here, or to rename the existing one as it is a bit nonsensical in this context. :johannh I'm going to pick on you for review as you reviewed bug 1387723 (and your queue is shorter than :dao's)
Comment on attachment 8895605 [details] Bug 1373341 - Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. https://reviewboard.mozilla.org/r/166822/#review172088 ::: browser/themes/shared/toolbarbutton-icons.inc.css:3 (Diff revision 2) > :root { > - --toolbarbutton-icon-fill-attention: #177ee5; > + --toolbarbutton-icon-fill-attention: #0a84ff; > } Add a toolbar[brighttext] rule here for the alternative color, rather than doing this in compacttheme.inc.css
Comment on attachment 8895605 [details] Bug 1373341 - Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. https://reviewboard.mozilla.org/r/166822/#review172150 r=me with the issues addressed (including dao's comment). I don't think you'll need another review for those, but of course feel free to flag me again in case of doubt :) Thanks! ::: browser/themes/shared/customizableui/customizeMode.inc.css:82 (Diff revision 2) > > #customization-done-button { > color: #fff; > font-weight: 700; > border-color: #0060df; > - background-color: #0a84ff; > + background-color: var(--toolbarbutton-icon-fill-attention); > The same blue was used in #customization-done-button, so for consistency's sake I've used the --toolbarbutton-icon-fill-attention here too, but probably we either need another variable here, or to rename the existing one as it is a bit nonsensical in this context. I agree that it's nonsensical in the context. Why not drop this change from this patch and open a follow-up bug that formulates the problem you're trying to solve here? :)
Attachment #8895605 - Flags: review?(jhofmann) → review+
Comment on attachment 8895605 [details] Bug 1373341 - Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. https://reviewboard.mozilla.org/r/166822/#review172398 ::: browser/themes/shared/toolbarbutton-icons.inc.css:3 (Diff revision 2) > :root { > - --toolbarbutton-icon-fill-attention: #177ee5; > + --toolbarbutton-icon-fill-attention: #0a84ff; > } This patch doesn't seem to set --toolbarbutton-icon-fill-attention to #45a1ff anywhere..?
Comment on attachment 8895605 [details] Bug 1373341 - Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. https://reviewboard.mozilla.org/r/166822/#review172398 > This patch doesn't seem to set --toolbarbutton-icon-fill-attention to #45a1ff anywhere..? Yeah, I messed up a rebase. Fixed now.
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bdc9b689b8b3 Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. r=johannh
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
I tested this on latest nightly (Build Id:20170810100255) and it is verified as fixed.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Managed to reproduce the issue on an affected build. Hence fixed and verified. Browser : Firefox Nightly 57.0a1 Build ID: 20170816100153 OS: Windows 10.0
[bugday-20170816]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: