Closed
Bug 1263171
Opened 9 years ago
Closed 8 years ago
Identity box text for internal pages is unreadable on dark themes in Nightly/Aurora
Categories
(Firefox :: Theme, defect, P4)
Tracking
()
People
(Reporter: mikedeboer, Assigned: dao)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(2 files, 3 obsolete files)
21.32 KB,
image/png
|
Details | |
2.72 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
Attached you'll find a screenshot of the Vertex Dark theme - there are many more - which shows that the default, non-verified-state font color of the Identity Box is too dark to be discernible from the background.
In bug 1244500 I proposed the following fix:
```css
#nav-bar:not(:-moz-lwtheme)[brighttext] #identity-box:not(:hover):not([open=true]) {
--identity-box-chrome-color: #fff;
}
```
But Gijs mentioned that things are probably not that straightforward: https://bugzilla.mozilla.org/show_bug.cgi?id=1244500#c24. And I think he's right :)
Flags: qe-verify+
Flags: firefox-backlog+
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Daniel Veditz [:dveditz] from comment #1)
> Forgot the attachment?
Not really, the code in comment 0 is incomplete. There's more work to be done here.
Flags: needinfo?(mdeboer)
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #2)
> (In reply to Daniel Veditz [:dveditz] from comment #1)
> > Forgot the attachment?
>
> Not really, the code in comment 0 is incomplete. There's more work to be
> done here.
You wrote "Attached you'll find a screenshot of the Vertex Dark theme" in comment 0. There's no screenshot.
Flags: needinfo?(mdeboer)
Reporter | ||
Comment 4•9 years ago
|
||
Flags: needinfo?(mdeboer)
Assignee | ||
Comment 5•9 years ago
|
||
So this only affects the "Nightly" label, not the "Firefox" label nor EV cert labels. Right?
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #5)
> So this only affects the "Nightly" label, not the "Firefox" label nor EV
> cert labels. Right?
Very true.
Comment 7•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #6)
> (In reply to Dão Gottwald [:dao] from comment #5)
> > So this only affects the "Nightly" label, not the "Firefox" label nor EV
> > cert labels. Right?
>
> Very true.
In this particular case, yes. It'd depend on the shade used whether other labels are affected. It seems likely that a more vibrant green for EV certs would be useful on some darker themes.
Assignee | ||
Comment 8•9 years ago
|
||
No, we're using a white background for EV cert labels.
Comment 9•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #8)
> No, we're using a white background for EV cert labels.
Is there a reason not to do the same for the "chromeui" identity box state as well?
Flags: needinfo?(dao)
Comment 10•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #6)
> (In reply to Dão Gottwald [:dao] from comment #5)
> > So this only affects the "Nightly" label, not the "Firefox" label nor EV
> > cert labels. Right?
>
> Very true.
I take it this means that this issue doesn't affect release. Is that correct?
Comment 11•9 years ago
|
||
Marking 46 and 47 as unaffected as this should only be affecting nightly.
Reporter | ||
Comment 12•9 years ago
|
||
This does affect release, unfortunately - but only on dark GTK themes.
Comment 13•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #12)
> This does affect release, unfortunately - but only on dark GTK themes.
How/why? They never show "Nightly", right, just "Firefox", per comment #5 / comment #6 ?
Flags: needinfo?(mdeboer)
Reporter | ||
Comment 14•9 years ago
|
||
You are right. Sorry for spamming this bug with my confusion.
Flags: needinfo?(mdeboer)
Assignee | ||
Comment 15•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #9)
> (In reply to Dão Gottwald [:dao] from comment #8)
> > No, we're using a white background for EV cert labels.
>
> Is there a reason not to do the same for the "chromeui" identity box state
> as well?
Mainly that it's unnecessary for the Firefox label, because the orange should provide good contrast with native -moz-field backgrounds.
It would be nice if we could use the same color across channels to avoid these kind of channel-specific bugs.
Flags: needinfo?(dao)
Reporter | ||
Comment 16•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #15)
> It would be nice if we could use the same color across channels to avoid
> these kind of channel-specific bugs.
+1! Stephen, what do you think about unifying the text color inside the identity box for in-chrome UI across all channels?
Flags: needinfo?(shorlander)
Reporter | ||
Comment 17•9 years ago
|
||
I just noticed that on Firefox 45 the text inside the identity box is blue as well! So this affects Fx 44+.
Assignee | ||
Comment 18•9 years ago
|
||
Oh, I wonder if this has changed or I just completely misremember us having used orange there.
Anyway, we should probably use a white background then, like we do for EV.
Comment 19•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #17)
> I just noticed that on Firefox 45 the text inside the identity box is blue
> as well! So this affects Fx 44+.
I run beta as my regular browser. It uses orange for Firefox, as do all release versions I've ever seen. Under what circumstances do you see blue?
Flags: needinfo?(mdeboer)
Reporter | ||
Comment 20•9 years ago
|
||
On Fx 45.0.1, Mozilla Firefox for Ubuntu, canonical - 1.0, visitin about:home.
Flags: needinfo?(mdeboer)
Comment 21•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #20)
> On Fx 45.0.1, Mozilla Firefox for Ubuntu, canonical - 1.0, visitin
> about:home.
Ah, I can reproduce this. However, this is because they seem to not be building with MOZ_OFFICIAL_BRANDING:
https://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/identity-block/identity-block.inc.css#11-18
Using a regular release build from mozilla.org the text *is* orange.
Pinging Mike and Sylvestre in case they know why not, what with all the recent todo about branding on Linux distros.
In any case, I agree that we should probably just make the background be white if that's what we do for EV already. Should probably doublecheck we don't break the devedition dark theme.
Flags: needinfo?(sledru)
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 22•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #21)
> In any case, I agree that we should probably just make the background be
> white if that's what we do for EV already. Should probably doublecheck we
> don't break the devedition dark theme.
From a technical POV I still prefer using the same color across the board, which apparently would be orange after all. And if everyone agrees that the contrast with orange is good enough, we won't need the white background.
Comment 23•9 years ago
|
||
Chris, does it ring a bell? (comment #21)
Flags: needinfo?(sledru) → needinfo?(chrisccoulson)
Updated•9 years ago
|
Comment 24•9 years ago
|
||
I don't know why ubuntu is not setting MOZ_OFFICIAL_BRANDING, but why is it not simply set in the branding? If we have color differences due to branding, it seems to me those differences should be coded in the branding itself, not in some file depending on #ifdef that may or may not match the branding being used.
Flags: needinfo?(mh+mozilla)
Comment 25•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #24)
> I don't know why ubuntu is not setting MOZ_OFFICIAL_BRANDING, but why is it
> not simply set in the branding? If we have color differences due to
> branding, it seems to me those differences should be coded in the branding
> itself,
I don't think we have branding files that are appropriate for this. The only files I know of are DTD and .properties files, and we're not talking about locale strings. The color is used from CSS, so you end up needing preprocessing either way... We don't have a way to use DTDs or .properties files from .css files. Do I just misunderstand what you're proposing?
Flags: needinfo?(mh+mozilla)
Comment 26•9 years ago
|
||
You can add css files to browser/branding/*/content. There is one already for the about dialog, I don't see why there couldn't be more.
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 27•9 years ago
|
||
Let's not lose track. To recap, this bug goes away if we use the same color (orange) for the "chromeUI" identity box label regardless of branding. The label itself spells out the product name unambiguously and the color change for unofficial builds is just a gimmick with little practical value.
Ubuntu makes this bug worse by not setting MOZ_OFFICIAL_BRANDING, but that's not what this bug is about. The discussion on how to work around that is pretty much off-topic.
Comment 28•9 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #23)
> Chris, does it ring a bell? (comment #21)
We build with --enable-official-branding. Is that not enough?
Flags: needinfo?(chrisccoulson)
Comment 29•9 years ago
|
||
Hmmm, ok, I thought we did but apparently that's no longer the case
Comment 30•9 years ago
|
||
This is resolved in our 46.0 builds
Comment 31•9 years ago
|
||
dropping tracking.
Comment 34•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/60028/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/60028/
Attachment #8763905 -
Flags: review?(shorlander)
Attachment #8763905 -
Flags: review?(dao+bmo)
Assignee | ||
Updated•9 years ago
|
Attachment #8763905 -
Flags: review?(dao+bmo) → review+
Comment 35•9 years ago
|
||
Not gtk3, as reported in bug 994754.
No longer blocks: gtk3
Summary: [GTK3] Identity box text unreadable on dark themes → Identity box text unreadable on dark themes
Updated•9 years ago
|
Comment 36•9 years ago
|
||
Comment on attachment 8763905 [details]
Bug 1263171 - remove nightly/aurora-specific branding colors,
20:51 shorlander Gijs_away: It's pretty bad in relation to the not orange icon ;)
20:51 shorlander Gijs_away: I would prefer just using system colors over the orange
20:54 shorlander Gijs_away: cl.ly/3Q0a0w1I0q31
20:54 shorlander Same color
20:54 shorlander On both sides
Dão, would something like this work as far as you're concerned?
Flags: needinfo?(shorlander) → needinfo?(dao+bmo)
Attachment #8763905 -
Flags: review?(shorlander)
Assignee | ||
Comment 37•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #36)
> 20:51 shorlander Gijs_away: I would prefer just using system colors over the
> orange
What exactly does this mean?
Flags: needinfo?(dao+bmo)
Comment 38•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #37)
> (In reply to :Gijs Kruitbosch from comment #36)
> > 20:51 shorlander Gijs_away: I would prefer just using system colors over the
> > orange
>
> What exactly does this mean?
Well, we'll have to ask Stephen, but I assume using whatever the matching foreground system color is for the background color we currently use on the identity box (looks like that'd be -moz-fieldtext on linux, so likely something white/off-white if -moz-field produces a dark box).
Flags: needinfo?(shorlander)
Comment 39•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #38)
> (In reply to Dão Gottwald [:dao] from comment #37)
> > (In reply to :Gijs Kruitbosch from comment #36)
> > > 20:51 shorlander Gijs_away: I would prefer just using system colors over the
> > > orange
> >
> > What exactly does this mean?
>
> Well, we'll have to ask Stephen, but I assume using whatever the matching
> foreground system color is for the background color we currently use on the
> identity box (looks like that'd be -moz-fieldtext on linux, so likely
> something white/off-white if -moz-field produces a dark box).
Yes, if we are worried about legibility then I would prefer using the system color rather than sticking the orange text next to the blue icon. Which as Gijs says would probably be -moz-fieldtext?
Flags: needinfo?(shorlander)
Comment 40•9 years ago
|
||
(In reply to Stephen Horlander [:shorlander] from comment #39)
> (In reply to :Gijs Kruitbosch from comment #38)
> > (In reply to Dão Gottwald [:dao] from comment #37)
> > > (In reply to :Gijs Kruitbosch from comment #36)
> > > > 20:51 shorlander Gijs_away: I would prefer just using system colors over the
> > > > orange
> > >
> > > What exactly does this mean?
> >
> > Well, we'll have to ask Stephen, but I assume using whatever the matching
> > foreground system color is for the background color we currently use on the
> > identity box (looks like that'd be -moz-fieldtext on linux, so likely
> > something white/off-white if -moz-field produces a dark box).
>
> Yes, if we are worried about legibility then I would prefer using the system
> color rather than sticking the orange text next to the blue icon. Which as
> Gijs says would probably be -moz-fieldtext?
WFM. Dão?
Flags: needinfo?(dao+bmo)
Updated•9 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Assignee | ||
Comment 42•8 years ago
|
||
Gijs, can you update the patch?
Assignee | ||
Updated•8 years ago
|
Summary: Identity box text unreadable on dark themes → Identity box text for internal pages is unreadable on dark themes in Nightly/Aurora
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Attachment #8763905 -
Attachment is obsolete: true
Updated•8 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 44•8 years ago
|
||
Comment on attachment 8786418 [details]
Bug 1263171 - use -moz-fieldtext for identity box text for chrome pages on unofficial/nightly/aurora builds,
--identity-box-chrome-color is already a text color, introducing --identity-box-chrome-text-color next to that is just confusing.
I think we can completely get rid of --identity-box-chrome-color and wrap the rule setting that color in an ifdef.
Attachment #8786418 -
Flags: review?(dao+bmo) → review-
Comment 45•8 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #44)
> Comment on attachment 8786418 [details]
> Bug 1263171 - use -moz-fieldtext for identity box text for chrome pages on
> unofficial/nightly/aurora builds,
>
> --identity-box-chrome-color is already a text color, introducing
> --identity-box-chrome-text-color next to that is just confusing.
>
> I think we can completely get rid of --identity-box-chrome-color and wrap
> the rule setting that color in an ifdef.
I don't understand what you're asking for here. Do you want a somewhat similar ifdef inside the new rule I'm adding rather than adding a separate property, and then move the existing property into an ifdef inside the one rule where we set color on the icon as well? That would require then also updating devedition, which seems to have code using the (existing) property. Or are you asking for something else? In which case, maybe it would be easier if you just write the patch? It would avoid playing 20 questions.
Flags: needinfo?(dao+bmo)
Assignee | ||
Comment 46•8 years ago
|
||
Yes, it does mean updating devedition. (I don't think there was any other way to read my comment...)
Assignee: gijskruitbosch+bugs → dao+bmo
Attachment #8786418 -
Attachment is obsolete: true
Flags: needinfo?(dao+bmo)
Attachment #8786522 -
Flags: review?(gijskruitbosch+bugs)
Comment 47•8 years ago
|
||
Comment on attachment 8786522 [details] [diff] [review]
patch
Review of attachment 8786522 [details] [diff] [review]:
-----------------------------------------------------------------
> I don't think there was any other way to read my comment...
I wouldn't have written this patch based on your comment, not even without the additional change to .verifiedIdentity.
::: browser/themes/shared/identity-block/identity-block.inc.css
@@ +19,3 @@
> }
>
> +%ifdef MOZ_OFFICIAL_BRANDING
This means the specificity for the icon + label color changes depending on whether we're building with/without official branding. That sets us up for regressions that happen on official branding but not otherwise (or vice versa). I would prefer for the ifdef to be inside the rule, and keep the explicit -moz-fieldtext, even if that's already what applies now because of some other rule.
@@ +22,1 @@
> #urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon,
So, I was concerned this would change the color of the firefox/nightly icon. It doesn't, because that's #identity-icon.
Under what circumstances does this icon show up when the identity-box has the chromeUI class? Because I believe the answer to that is "never", which means we might as well nuke this selector from orbit to reduce confusion and useless CSS.
If the answer isn't "never", can you clarify what effect this has in the official branding case?
Attachment #8786522 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 48•8 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #47)
> This means the specificity for the icon + label color changes depending on
> whether we're building with/without official branding. That sets us up for
> regressions that happen on official branding but not otherwise (or vice
> versa). I would prefer for the ifdef to be inside the rule, and keep the
> explicit -moz-fieldtext, even if that's already what applies now because of
> some other rule.
I don't understand how this will prevent official branding regressions. If the rule breaks we still won't notice on nightly/aurora because it's effectively a no-op there.
> > #urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon,
>
> So, I was concerned this would change the color of the firefox/nightly icon.
> It doesn't, because that's #identity-icon.
>
> Under what circumstances does this icon show up when the identity-box has
> the chromeUI class? Because I believe the answer to that is "never", which
> means we might as well nuke this selector from orbit to reduce confusion and
> useless CSS.
>
> If the answer isn't "never", can you clarify what effect this has in the
> official branding case?
Seems orthogonal to this bug since I didn't touch the selector, but I think the #connection-icon selector can indeed be removed.
Flags: needinfo?(gijskruitbosch+bugs)
Comment 49•8 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #48)
> (In reply to :Gijs Kruitbosch from comment #47)
> > This means the specificity for the icon + label color changes depending on
> > whether we're building with/without official branding. That sets us up for
> > regressions that happen on official branding but not otherwise (or vice
> > versa). I would prefer for the ifdef to be inside the rule, and keep the
> > explicit -moz-fieldtext, even if that's already what applies now because of
> > some other rule.
>
> I don't understand how this will prevent official branding regressions. If
> the rule breaks we still won't notice on nightly/aurora because it's
> effectively a no-op there.
Because if I want to override this rule I need something more specific than if I want to override the existing nightly/aurora rule. So let's say in some cases we want to color the text red:
#identity-box.reallyred > #identity-icon-labels {
color: red;
}
would be enough after your patch for nightly and aurora, but not enough on official branding builds. So I think having the rule be present (but idempotent) on aurora/nightly is better than not having it.
> > > #urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #connection-icon,
> >
> > So, I was concerned this would change the color of the firefox/nightly icon.
> > It doesn't, because that's #identity-icon.
> >
> > Under what circumstances does this icon show up when the identity-box has
> > the chromeUI class? Because I believe the answer to that is "never", which
> > means we might as well nuke this selector from orbit to reduce confusion and
> > useless CSS.
> >
> > If the answer isn't "never", can you clarify what effect this has in the
> > official branding case?
>
> Seems orthogonal to this bug since I didn't touch the selector, but I think
> the #connection-icon selector can indeed be removed.
Might as well do it while we're here anyway, IMO.
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 50•8 years ago
|
||
I also removed #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #connection-icon since we don't use a filter on that icon anyway, i.e. the green is already part of the icon itself.
Attachment #8786522 -
Attachment is obsolete: true
Attachment #8786678 -
Flags: review?(gijskruitbosch+bugs)
Updated•8 years ago
|
Attachment #8786678 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 51•8 years ago
|
||
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/58a5ab186197
Remove custom identity box color for chrome pages in non-release builds since it doesn't provide sufficient contrast with dark themes. r=gijs
Comment 52•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Assignee | ||
Updated•8 years ago
|
Comment 53•8 years ago
|
||
Reproduced with Vertex-Dark theme using Nightly 2016-04-08 under Ubuntu 14.04 32-bit.
Verified as fixed using 51.0a1 2016-09-02.
You need to log in
before you can comment on or make changes to this bug.
Description
•