[Colorway Closet] "Update available" badge lacks visibility with "Balanced" intensity and some colorways
Categories
(Firefox :: Theme, defect, P3)
Tracking
()
People
(Reporter: hyacoub, Assigned: dao)
References
Details
(Whiteboard: [fidefe-2022-colorway-closet])
Attachments
(2 files)
Found in
- Firefox 105.0a1
Affected versions
- Firefox 105.0a1
Affected platforms
- Windows 10 x64
- Windows 11 x64
- macOS 11.6
- Ubuntu 20.04 x64
Preconditions
In about:config set:
"browser.theme.colorway-closet" to true
"browser.tabs.firefox-view" to true
Steps to reproduce
- Make sure not to have the latest Firefox Nightly build -> Update available - restart now should be displayed in the hamburger menu
- Open "Colorways closet" from Fxview or from about:addons
- Select "Balanced" intensity with any of the following colorways "playmaker, visionary, activist, dreamer"
- Open hamburger menu and observe "update available" badge
Expected result
"Update available" badge shouldn't lack visibility.
Actual result
"Update available" badge lacks visibility with "Balanced" intensity and some colorways.
Regression range
Not a regression.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
This is because we're using --panel-banner-item-update-supported-bgcolor
both for the in-toolbar badge (where the background is dark-ish to the point that we use a white text colour, and where the colour looks fine) and for the in-menu badge (where the background is bright, and the colour looks bad).
A short-term solution could be to apply some processing logic to the variable and switch to the default colour green for the badge if the background colour of the panel is dark while the background colour of the toolbar is "dark". I'm unsure if there is a better solution available without adding more properties to the per-colourway list.
Assignee | ||
Comment 2•2 years ago
|
||
(In reply to :Gijs (he/him) from comment #1)
This is because we're using
--panel-banner-item-update-supported-bgcolor
both for the in-toolbar badge (where the background is dark-ish to the point that we use a white text colour, and where the colour looks fine) and for the in-menu badge (where the background is bright, and the colour looks bad).A short-term solution could be to apply some processing logic to the variable and switch to the default colour green for the badge if the background colour of the panel is dark while the background colour of the toolbar is "dark".
That's an option. A simpler one would be to stop setting appmenu_update_icon_color
in affected colorways. That property is implemented as a custom experiment, i.e. it isn't generally as part of the webext theme API, and the default color should provide sufficient contrast in most cases.
Assignee | ||
Comment 3•2 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #2)
(In reply to :Gijs (he/him) from comment #1)
A short-term solution could be to apply some processing logic to the variable and switch to the default colour green for the badge if the background colour of the panel is dark while the background colour of the toolbar is "dark".
That's an option. A simpler one would be to stop setting
appmenu_update_icon_color
in affected colorways. That property is implemented as a custom experiment, i.e. it isn't generally as part of the webext theme API, and the default color should provide sufficient contrast in most cases.
In fact I think the latter would be the preferred option, because I think the original idea was that the notification dot's color and the color used in the panel should match in order to visually connect the two.
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
FYI, you can test this by running PanelUI._showBadge({id : "update-available"}); PanelUI._showBannerItem({id : "update-available"});
in the browser console.
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93caeb584fdd Stop setting appmenu_update_icon_color in Activist/Dreamer/Playmaker Balanced, adopt Visionary Soft color in Visionary Balanced. r=Gijs
Comment 7•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Reporter | ||
Comment 8•2 years ago
|
||
Verified as fixed on Windows 10/11 x64, Ubuntu 20.04 x64 and on macOS 11.6.
Description
•