Search code examples
htmlcsspolymer

polymer paper-icon-button specify width of icon


Using

<paper-icon-button icon='image:photo' fill="true"></paper-icon-button>

I have the correct icon, but unfortunately, it's small (around 24px).

I tried to specify the width :

paper-icon-button {
    min-width: 50px;
}

But it's not working. Is it possible to specify the width for the icon ?

Thanks.


Solution

  • The core-icons themselves are resizeable, this is one of the reasons we use SVG (by default; another reason being the ability to colorize).

    But *-icon-button doesn't provide a conduit for controlling this size.

    I created some issue tickets:

    https://github.com/Polymer/core-icon-button/issues/3

    https://github.com/Polymer/paper-button/issues/9