moz-button type=icon background color differs from type=default
Categories
(Toolkit :: UI Widgets, defect, P3)
Tracking
()
People
(Reporter: mstriemer, Unassigned)
References
Details
(Whiteboard: [recomp])
The button background color is determined by a color-mix()
that includes the currentColor
. Because of this, the color
needs to be --button-text-color
for the background color to be the expected value
The type=icon styles should be updated so they set fill: var(--icon-color)
instead of using color: var(--icon-color)
Updated•10 months ago
|
Reporter | ||
Comment 1•9 months ago
|
||
Another option may be to update the --button-background-color
token to use --button-text-color
instead of currentColor
color-mix(in srgb, var(--button-text-color) 7%, transparent)
Recomp discussed this and it probably makes sense to stick with just modifying moz-button
for now
Reporter | ||
Comment 2•9 months ago
|
||
Looks like bug 1896140 identified an a11y issue stemming from using a different colour for the text as well. The solution there is to stop using --icon-color
entirely and instead use the button text colour for the fill which solves this issue as well.
Description
•