Closed Bug 1953581 Opened 13 days ago Closed 11 days ago

ghost buttons don't inherit the color properly

Categories

(Firefox :: Theme, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-profile-management])

Attachments

(3 files)

No description provided.

Without this change, consider a ghost button like:

<div style="color: white; background: black;">
<moz-button type="ghost">Foo</moz-button>

The <button> inside the shadow tree will get color:
var(--button-text-color), and then .button-background would get
var(--button-text-color-ghost), which will inherit --button-text-color
rather than the color you want (white in this case).

Instead, inherit the color through the button by default.

Depends on D241274

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Much like D237760.

Depends on D241275

Blocks: 1934571
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/94ae18cad0f6 Make moz-button really respect --button-text-color-ghost. r=desktop-theme-reviewers,reusable-components-reviewers,dao,tgiles https://hg.mozilla.org/integration/autoland/rev/d2d7e7eb2f94 Make ghost buttons not change color on hover/active. r=desktop-theme-reviewers,reusable-components-reviewers,dao,tgiles
Status: ASSIGNED → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Whiteboard: [fidefe-profile-management]
Blocks: 1946020
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: