q-btn icon rendered outside the button? #17571
-
Hi quasar gurus, I have this code (I have 'material-icons' in the extras array in quasar.config.js):
and it gets rendered outside the button: If I remove the the
the border streches out and I get this (still ugly): Are these two styles clashing? This does not happen with all icons, if I change to eg. On a related issue, some material icons work, and some don't, they simply do not show up. I have this in my html's head tag:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
First of all, Quasar CLI handles including the webfont files for you when you use
You are probably using https://fonts.google.com/icons to check out icons. But, there is one small but very important detail; it shows Material Symbols icons by default. When you address this, all the problems you mentioned will go away. |
Beta Was this translation helpful? Give feedback.
First of all, Quasar CLI handles including the webfont files for you when you use
quasar.config file > extras
. So, please remove<link href="https://fonts.googleapis.com/...
. Quasar extras also makes sure that the fonts/icons/etc. are available when offline, e.g. PWA offline mode, Electron apps, Capacitor apps, etc.You are probably using https://fonts.google.com/icons to check out icons. But, there is one small but very important detail; it shows Material Symbols icons by default.
make sure you choose Material Icons, when you are using Material Icons in your app
Please note that Quasar also supp…