googlearchive / core-icon

A custom element that display an icon.
https://www.polymer-project.org/docs/elements/core-elements.html#core-icon
10 stars 17 forks source link

core-icon {color:grey; width: 48px !important; height: 48px !important;} #22

Closed gertcuykens closed 10 years ago

gertcuykens commented 10 years ago

I had to use !important in my style tag before it changed the size. Can this be changed so you don't need to use !important?

robdodson commented 10 years ago

It is a bit unfortunate that you need to increase your specificity to work with the core-icon. Instead of using !important, I would recommend giving your icon a class name. Styling with the class will have greater specificity than the internal styles that set width and height.

gertcuykens commented 10 years ago

ok going to do it that way, thanks!