Closed
Bug 1008730
Opened 11 years ago
Closed 8 years ago
Customization palette doesn't obey High Contrast settings
Categories
(Firefox :: Theme, defect, P3)
Firefox
Theme
Tracking
()
RESOLVED
FIXED
Firefox 51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: bjl, Assigned: dao)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file, 3 obsolete files)
6.75 KB,
patch
|
Gijs
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140506152807
Steps to reproduce:
Open Windows 7 Display colour settings.
Select the Window object and change font colour to white and background to black.
Right click on the FF menu bar.
Click on Customize.
Actual results:
In the left hand page only icons are visible. Text associated with the icons is not visible.
Expected results:
Please see W3C WAI Accessibility Guideline F24 for a full description of the problem:
http://www.w3.org/TR/WCAG-TECHS/F24.html
Do not test with the Windows High Contrast themes. These themes are not usable in the wrold world since they also strip out graphics and navigation objects. They also, somehow, sometimes resolve this problem and change colours on the fly.
For a fuller test go through all Windows objects and change all font/background settings to white on black. To aid troubleshooting it can help to use unusual colours such as lime green text on a red background - such colours make it easier to see which colours have not been set in the user interface and which have defaulted to the OS colour settings.
It is also impossible to see the text on Tabs too.
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Component: Untriaged → Theme
Ever confirmed: true
Flags: firefox-backlog+
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Text not visible on new toobar customisation when using white text on a black background colour settings → Customization toolbox should hardcode text color where the background is hardcoded
It has been suggested that because the background colours have been set that the text colour too should be set. This fits well with the accessibility guideline. But please see the second screen shot which is taken with test colours set as I suggested ie. lime green text on red.
It can be seen that the left hand pane has lime green text but not on a red background. This confirms that the text colour has not been set but the background has. However. The right hand pane shows lime green text on a red background. This too fits the guuideline but the approaches taken differ. Would not a consistent approach be preferable?
The complication is that different parts of the interrace are takng a different approach. The proposed solution would ensure text and background are set for the left hand pane. Yet the right hand pane is defaulting to OS settings. This results in one pane displaying as black on white, and the other white on black. A consisten approach would ensure both use the same which is preferable. Having large chunks of the screen in black and others in white can be a problem for the visually impaired.
You can also see other parts of the interface eg. tab text where either forefround or background have been set but not both. But note. I have nto set test colours for all Windows objects, only for Window font and background.
I recommend setting the colur of text on tabs to ensure sufficient contrast with the hard coded background.
I've just done a little more testing. My suggestion to also set the colour of tab text is not quite so straight forward.
The backgroun colour of the tab bar seems to be taken from the Windows 3D object. If I am correct then to be consistent the tab text colour should be taken from the font colour setting for this object.
But the situation is complicated due to the tab bar background colouor being graduated ie. darker at the top than at the bottom. Doing this makes it impossible to ensure the text colour will have sufficient contrast to stand out from the background. It's best to avoid graduating colours for a basic theme designed to suit the majority of users. I think there is a WAI Guieline along these lines too.
Updated•11 years ago
|
Updated•10 years ago
|
Blocks: fx-high-contrast
Updated•10 years ago
|
Summary: Customization toolbox should hardcode text color where the background is hardcoded → Customization palette is unusable when using a High Contrast theme
Updated•10 years ago
|
Whiteboard: p=3
Updated•10 years ago
|
Points: --- → 3
Whiteboard: p=3
Assignee | ||
Updated•8 years ago
|
Priority: -- → P3
Summary: Customization palette is unusable when using a High Contrast theme → Button labels are invisible in the customization palette when using a High Contrast theme
Assignee | ||
Comment 5•8 years ago
|
||
This appears to have been fixed. The labels are visible now, but the palette just doesn't obey high contrast mode at all.
Priority: P3 → P4
Summary: Button labels are invisible in the customization palette when using a High Contrast theme → Customization palette doesn't obey High Contrast settings
Assignee | ||
Updated•8 years ago
|
Attachment #8420669 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8420870 -
Attachment is obsolete: true
Assignee | ||
Comment 6•8 years ago
|
||
Bug 1297806 made this "worse" again in that the palette item icons now use a platform color (-moz-fieldtext); the rest of the palette needs to do follow suit.
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Priority: P4 → P3
Version: 29 Branch → Trunk
Assignee | ||
Comment 7•8 years ago
|
||
Attachment #8791222 -
Flags: review?(gijskruitbosch+bugs)
Comment 8•8 years ago
|
||
Comment on attachment 8791222 [details] [diff] [review]
patch
Review of attachment 8791222 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/themes/shared/customizableui/customizeMode.inc.css
@@ +122,4 @@
> padding: 10px;
> }
>
> +%if defined(XP_MACOSX) || defined(XP_WIN)
Can't we just do %ifndef XP_LINUX ?
@@ +387,5 @@
>
> .customization-lwtheme-menu-theme[active="true"],
> .customization-lwtheme-menu-theme:hover {
> + background-color: var(--arrowpanel-dimmed);
> + border-color: var(--panel-separator-color);
It makes me uncomfortable that we're using this variable on things which are clearly not panel separators. Can we rename it to something more sensible? 'arrowpanel-dimmed' (further) also doesn't seem like it really covers what the lwtheme button's hover (or active) state is...
@@ +413,5 @@
> #customization-lwtheme-menu-header,
> #customization-lwtheme-menu-recommended,
> #customization-lwtheme-menu-footer {
> + background-color: var(--arrowpanel-dimmed);
> + color: GrayText;
There doesn't seem to be any guarantee this combination works for the arrowpanel-dimmed values. It doesn't on the theme I'm using, as this renders light grey on slightly darker grey.
@@ +430,4 @@
> }
>
> #customization-lwtheme-menu-footer {
> + background: linear-gradient(var(--arrowpanel-dimmed) 60%, transparent) border-box;
This gradient looks like it's the wrong way around on dark themes.
Attachment #8791222 -
Flags: review?(gijskruitbosch+bugs) → review-
Assignee | ||
Comment 9•8 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #8)
> > +%if defined(XP_MACOSX) || defined(XP_WIN)
>
> Can't we just do %ifndef XP_LINUX ?
I could but I prefer to be explicit about which OSes I'm targeting here.
> > .customization-lwtheme-menu-theme[active="true"],
> > .customization-lwtheme-menu-theme:hover {
> > + background-color: var(--arrowpanel-dimmed);
> > + border-color: var(--panel-separator-color);
>
> It makes me uncomfortable that we're using this variable on things which are
> clearly not panel separators. Can we rename it to something more sensible?
Suggestions welcome (in another bug though).
> 'arrowpanel-dimmed' (further) also doesn't seem like it really covers what
> the lwtheme button's hover (or active) state is...
Dimmed on hover, dimmed further on active makes sense to me and is consistent with how this is used elsewhere.
> > #customization-lwtheme-menu-header,
> > #customization-lwtheme-menu-recommended,
> > #customization-lwtheme-menu-footer {
> > + background-color: var(--arrowpanel-dimmed);
> > + color: GrayText;
>
> There doesn't seem to be any guarantee this combination works for the
> arrowpanel-dimmed values. It doesn't on the theme I'm using, as this renders
> light grey on slightly darker grey.
Have to use the default color then, I suppose.
> > #customization-lwtheme-menu-footer {
> > + background: linear-gradient(var(--arrowpanel-dimmed) 60%, transparent) border-box;
>
> This gradient looks like it's the wrong way around on dark themes.
The gradient isn't supposed go any particular way except that it connects the footer with the panel arrow (which uses -moz-field).
Assignee | ||
Comment 10•8 years ago
|
||
Attachment #8791222 -
Attachment is obsolete: true
Attachment #8791272 -
Flags: review?(gijskruitbosch+bugs)
Comment 11•8 years ago
|
||
Comment on attachment 8791272 [details] [diff] [review]
patch v2
(In reply to Dão Gottwald [:dao] from comment #9)
> (In reply to :Gijs Kruitbosch from comment #8)
> > > .customization-lwtheme-menu-theme[active="true"],
> > > .customization-lwtheme-menu-theme:hover {
> > > + background-color: var(--arrowpanel-dimmed);
> > > + border-color: var(--panel-separator-color);
> >
> > It makes me uncomfortable that we're using this variable on things which are
> > clearly not panel separators. Can we rename it to something more sensible?
>
> Suggestions welcome
adaptive-separator-color ?
Maybe we should have a second/independent variable that just happens to have the same values.
> (in another bug though).
Why? This is, AIUI, where we're first using these outside of the main menupanel and/or its toolbarbuttons/items. I don't recall reviewing other patches where this happened. Did I miss a trick?
> > 'arrowpanel-dimmed' (further) also doesn't seem like it really covers what
> > the lwtheme button's hover (or active) state is...
>
> Dimmed on hover, dimmed further on active makes sense to me and is
> consistent with how this is used elsewhere.
I thought this was the main button. The naming here is maybe not ideal. Anyway, looking at this again, it seems your patch also uses it for borders on sections that don't have hover/active feedback at all.
> > > #customization-lwtheme-menu-footer {
> > > + background: linear-gradient(var(--arrowpanel-dimmed) 60%, transparent) border-box;
> >
> > This gradient looks like it's the wrong way around on dark themes.
>
> The gradient isn't supposed go any particular way except that it connects
> the footer with the panel arrow (which uses -moz-field).
Maybe we should update the arrow, then?
Attachment #8791272 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 12•8 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #11)
> Comment on attachment 8791272 [details] [diff] [review]
> patch v2
>
> (In reply to Dão Gottwald [:dao] from comment #9)
> > (In reply to :Gijs Kruitbosch from comment #8)
> > > > .customization-lwtheme-menu-theme[active="true"],
> > > > .customization-lwtheme-menu-theme:hover {
> > > > + background-color: var(--arrowpanel-dimmed);
> > > > + border-color: var(--panel-separator-color);
> > >
> > > It makes me uncomfortable that we're using this variable on things which are
> > > clearly not panel separators. Can we rename it to something more sensible?
> >
> > Suggestions welcome
>
> adaptive-separator-color ?
>
> Maybe we should have a second/independent variable that just happens to have
> the same values.
>
> > (in another bug though).
>
> Why? This is, AIUI, where we're first using these outside of the main
> menupanel and/or its toolbarbuttons/items. I don't recall reviewing other
> patches where this happened. Did I miss a trick?
It's used in many panels.
https://dxr.mozilla.org/mozilla-central/search?q=%22--panel-separator-color%22&=mozilla-central
> > > 'arrowpanel-dimmed' (further) also doesn't seem like it really covers what
> > > the lwtheme button's hover (or active) state is...
> >
> > Dimmed on hover, dimmed further on active makes sense to me and is
> > consistent with how this is used elsewhere.
>
> I thought this was the main button. The naming here is maybe not ideal.
> Anyway, looking at this again, it seems your patch also uses it for borders
> on sections that don't have hover/active feedback at all.
I'd prefer using --panel-separator-color for those borders but it's darker. Using --arrowpanel-dimmed is more conservative in terms of staying true to the original design and still kind of works semantically (i.e. the border surface dims the background).
> > > > #customization-lwtheme-menu-footer {
> > > > + background: linear-gradient(var(--arrowpanel-dimmed) 60%, transparent) border-box;
> > >
> > > This gradient looks like it's the wrong way around on dark themes.
> >
> > The gradient isn't supposed go any particular way except that it connects
> > the footer with the panel arrow (which uses -moz-field).
>
> Maybe we should update the arrow, then?
We can't update it, we could fork and customize it for this particular panel. It's a bit of an effort and implies a maintenance cost that I'm not sure is justified considering that this is secondary UI. This is also orthogonal to this bug.
Updated•8 years ago
|
Attachment #8791272 -
Flags: review+
Comment 13•8 years ago
|
||
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fea76c9b016b
Make customization palette respect OS themes. r=gijs
Comment 14•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
You need to log in
before you can comment on or make changes to this bug.
Description
•