Is there a way to set a Q-btn icon size independent of the button size?
-
@s-molinari Thanks, that works to set the size. But now my stacked button has the label above the icon instead of below it. Any suggestion how to overcome this?
-
Can you make a codepen of your use case?
Scott
-
Mixing icon sets in a app let alone a single component is considered to be a bad practice.
-
@s-molinari Scott, I tried to show in a codepen, but the ‘stack’ prop doesn’t seem to work there.
https://codepen.io/crawfordw/pen/MWKdyMW -
@CWoodman you are using a pre v1 version. Fork the codepen from docs in the
Tools
menu and edit it. This codepen https://codepen.io/rstoenescu/pen/VgQbdx. For the icon cdn’s copy paste the urls from here https://quasar.dev/start/umd#Installation into your codepen css settings. -
@metalsadman Thanks. Here’s the new codepen:
https://codepen.io/crawfordw/pen/KKVjoBK -
-
Ah there’s a
stack
property in q-btn. It is buried quite deep in the docs. There’s 1 example but you really have to look for it… -
@CWoodman @s-molinari 's solution should be it, since you are using default slot.
-
Yes that works. Thanks Scott! You guys are the best!
-