Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was 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

@davecourtois

Description

@davecourtois

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions