Closed
Bug 2044711
Opened 4 months ago
Closed 3 months ago
Clean up lwtheme and lwtheme-image-y-align attributes on body and #navigator-toolbox
Categories
(Firefox :: Toolbars and Customization, enhancement)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: nsharpley, Assigned: emilio)
References
Details
Attachments
(1 file)
In bug 2027859, we introduced some complexity with adding a gradient to the toolbar in dark/light mode and transparency for overlaying background images in themes for Nova. We should clean up this portion which should land with this bug, perhaps by introducing an attribute to determine whether the image is on the toolbox or body:
/* Images go on the body by default, unless they are aligned in the y axis in
* which case they go on the toolbox for backwards compatibility */
@media not -moz-pref("browser.nova.enabled") {
:root:not([lwtheme-image-y-align]) body,
:root[lwtheme-image-y-align] #navigator-toolbox {
background-image: var(--toolbox-background-image);
background-repeat: var(--toolbox-background-repeat);
background-position: var(--toolbox-background-position);
background-size: var(--toolbox-background-size);
}
}
@media -moz-pref("browser.nova.enabled") {
:root[lwtheme]:not([lwtheme-image-y-align]) #navigator-toolbox {
color: inherit;
/* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens */
background-color: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
}
:root[lwtheme]:not([lwtheme-image-y-align]) body,
:root:is([lwtheme-image-y-align], :not([lwtheme])) #navigator-toolbox {
background-image: var(--toolbox-background-image);
background-repeat: var(--toolbox-background-repeat);
background-position: var(--toolbox-background-position);
background-size: var(--toolbox-background-size);
}
...
}
| Assignee | ||
Updated•4 months ago
|
Flags: needinfo?(emilio)
| Assignee | ||
Updated•4 months ago
|
Flags: needinfo?(emilio)
| Assignee | ||
Comment 1•4 months ago
|
||
This makes the CSS less confusing, your call on whether it's worth it.
Updated•4 months ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c42bded1da71
https://hg.mozilla.org/integration/autoland/rev/a0344ed052e3
Centralize theme background-image location decision. r=desktop-theme-reviewers,dao
Comment 3•3 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in
before you can comment on or make changes to this bug.
Description
•