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)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: dcoates, Unassigned)
Details
Attachments
(1 file)
19.72 KB,
image/gif
|
Details |
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
Comment 1•8 years ago
|
||
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)
Comment 2•7 years ago
|
||
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.
Description
•