Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

the color attribute dosent work... There is a fix I do... #62

Open
8 tasks
davecourtois opened this issue Apr 26, 2022 · 0 comments
Open
8 tasks

the color attribute dosent work... There is a fix I do... #62

davecourtois opened this issue Apr 26, 2022 · 0 comments

Comments

@davecourtois
Copy link

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});
}

this._updateSize();

},

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant