These two svg have different height, however the width is same, in the output result.
Also, using height: 2rem and font-size: 2rem has a very significant difference. To get the same result as height: 2remfont-size: 8rem needs to be used.
Expected behavior
All the icons should have same height, if it has same font size. The font size is supposed to alter the height first and then width. (Correct me if I'm wrong here).
Also, I suppose height and font-size should behave same, in this context.
Screenshots
Desktop (please complete the following information):
Describe the bug SVG sizes are different though they have same font size, especially if they have different viewbox size.
To Reproduce
These two svg have different height, however the width is same, in the output result. Also, using
height: 2rem
andfont-size: 2rem
has a very significant difference. To get the same result asheight: 2rem
font-size: 8rem
needs to be used.Expected behavior All the icons should have same height, if it has same font size. The font size is supposed to alter the height first and then width. (Correct me if I'm wrong here). Also, I suppose height and font-size should behave same, in this context.
Screenshots![image](https://user-images.githubusercontent.com/86005080/214825112-7ac0bfac-c2ac-457f-9719-5e3bdd31062a.png)
Desktop (please complete the following information):
Linux
v16.18.1
3.1.1
2.1.0
pnpm@7.26.0
vite
extends
,app
,modules
@nuxtjs/tailwindcss@6.3.0
,nuxt-icons
Build Modules:
-
Additional context
Disabling
width
somewhat gives the expected result. Also,margin-bottom
seems redundant here.I suppose,
width
andheight
are set to1em
to make the ratio square.A option to override the default css would do the job probably.