This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Description
The icon color dosent change...
In the file paper-swatch-picker
at line 193 in the attched handler... I add verification if color attribute exist if so I fire the event...
attached: function() {
// Note: we won't actually render these color boxes unless the menu is
// actually tapped.
this._renderedColors = false;
if(this.getAttribute("color")!=null){
this.color = this.getAttribute("color")
this.fire('color-picker-selected', {color: this.color});
}
},
at line 275 I set the property of --iron-icon-fill-color
_colorChanged: function() {
this.$.iconButton.style.color = this.color;
this.$.iconButton.style.setProperty("--iron-icon-fill-color", this.color)
},
Now the icon is the correct color
Browsers Affected