You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sizes are forced to 1em. Yes, I treat this as a bug.
I understand that it may be a bit simpler for someone to import the module and not worry about using icons and writing two lines of CSS or adding an HTML class to dictate size. It may save that one step.
Given how powerful Nuxt is, I don't see this as much of an added value. It's so easy to add an HTML class or SCSS or CSS that forcing width and height doesn't save you much.
This does create some headaches though. What if icons need to be one size on one page, but a different size on another? Too bad! What if they need to be something different than 1em? You're writing CSS or SCSS anyways. What if we are using Tailwind? Nope, can't add classes to override, the forced 1em width overrides that. You'd have to add custom tailwind with !important tags.
There should be a setting in the module to not force this width. That's the easiest solution IMO. In fact, a perfect world there'd be an option to disable the forced size and an option to set the size to whatever you want, but I recommend the option to disable the forced size.
The text was updated successfully, but these errors were encountered:
Sizes are forced to 1em. Yes, I treat this as a bug.
I understand that it may be a bit simpler for someone to import the module and not worry about using icons and writing two lines of CSS or adding an HTML class to dictate size. It may save that one step.
Given how powerful Nuxt is, I don't see this as much of an added value. It's so easy to add an HTML class or SCSS or CSS that forcing width and height doesn't save you much.
This does create some headaches though. What if icons need to be one size on one page, but a different size on another? Too bad! What if they need to be something different than 1em? You're writing CSS or SCSS anyways. What if we are using Tailwind? Nope, can't add classes to override, the forced 1em width overrides that. You'd have to add custom tailwind with
!important
tags.There should be a setting in the module to not force this width. That's the easiest solution IMO. In fact, a perfect world there'd be an option to disable the forced size and an option to set the size to whatever you want, but I recommend the option to disable the forced size.
The text was updated successfully, but these errors were encountered: