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

Reflect icon to attribute for styling #107

Open
n1ywb opened this issue Jul 19, 2017 · 0 comments
Open

Reflect icon to attribute for styling #107

n1ywb opened this issue Jul 19, 2017 · 0 comments

Comments

@n1ywb
Copy link

n1ywb commented Jul 19, 2017

It would be great if the icon property were reflected to an attribute, then we could style icons using an attribute selector.

E.g.

<style>iron-icon[icon="my-icon"] { color: green; }</style>
<iron-icon icon="my-icon"></iron-icon>

This would allow you to define colors for all your icons in a style module and apply them without having to add an id or class to the iron-icon.

Alternatively iron-icon could add my-icon as a class.

Looks like this feature has been PRed before #69

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