Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant