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.
In 1.1, the correct way to do this is:
.my-button {
--paper-icon-button: {
width: 24px;
height: 24px;
}
}
Since Polymer 1.x CSS variables provide a convenient way to achieve the desired effect. In case of paper-icon-button
, which incorporates iron-icon
it is possible to set iron-icon
specific CSS variables:
.my-button {
--iron-icon-height: 24px;
--iron-icon-width: 24px;
}
...
<paper-icon-button icon="menu" class="my-button"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With