Closed Bug 1894820 Opened 1 month ago Closed 1 month ago

moz-button type=icon background color differs from type=default

Categories

(Toolkit :: UI Widgets, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1896140

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)

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

Severity: -- → S3
Priority: -- → P3

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.

Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1896140
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.