Closed Bug 1292981 Opened 8 years ago Closed 7 years ago

Button badge color changes when entering customize mode

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: dcoates, Unassigned)

Details

Attachments

(1 file)

Attached image foo.gif
A minimal addon with a button having a custom badgeColor changes to a red badge when entering customize mode. ```js const { ToggleButton } = require('sdk/ui/button/toggle'); const button = ToggleButton({ id: 'hello', label: 'hello', icon: './icon.png', badge: 'New', badgeColor: '#1996F7' }); ``` see also https://github.com/mozilla/testpilot/issues/1165
If we (the people working on TestPilot) want it to remain the custom blue colour, I think we'll have to inject a stylesheet, as in https://github.com/bwinton/whimsy/blob/master/lib/spinner.js (and https://github.com/bwinton/whimsy/blob/master/lib/xulcss.js)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: