Remove preprocessor variable use of buttonStateHover, buttonStateHoverOrFocus and buttonStateActive
Categories
(Firefox :: Toolbars and Customization, task, P3)
Tracking
()
People
(Reporter: Gijs, Assigned: sfoster)
References
Details
(Whiteboard: [fidefe-2022-mr1-css-linting])
Attachments
(4 files)
+++ This bug was initially created as a clone of Bug #1747422 +++
This bug covers browser/themes/shared/customizableui/panelUI.inc.css and the macos file using the same replacement as part of selectors.
From a very quick look it seems like we could set a variable on the button, and update the variable for hover/focus that we then end up using for the text/icon. Alternatively, it looks like some of the selectors could be combined if we made more efficient use of classes.
Updated•4 years ago
|
| Reporter | ||
Updated•4 years ago
|
| Reporter | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
I'm trying to figure out a good path forward here. The selector-parts those variables represent are a little gnarly and error-prone - definitely the kind of thing it would be good to avoid duplicating across all the instances in those files. I can see managing a class on the button to replace the not([disabled],[open]]) bit, but that would still leave the need for a :not(:active) in each selector. Maybe that is enough to make the remainder bearable?
| Assignee | ||
Comment 2•4 years ago
|
||
:emilio and :ntim suggest trying to reverse the logic to end up with much simpler, more readable rules, along the lines of
button:hover { color: var(--hover-color) }
button:is([disabled],[open]) { color: inherit }
..I'll see if something like that might work in the various instances.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
Depends on D137346
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D137347
| Assignee | ||
Comment 6•4 years ago
|
||
Depends on D137348
Comment 8•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cdc88799f225
https://hg.mozilla.org/mozilla-central/rev/fed0f04a2ae2
https://hg.mozilla.org/mozilla-central/rev/bbcd805fe7e3
https://hg.mozilla.org/mozilla-central/rev/41400853180c
Comment 9•4 years ago
|
||
Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.
| Reporter | ||
Updated•4 years ago
|
Description
•