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
Firefox and Safari seem to handle this fine right now, but Chromium doesn't.
Firefox:
Chromium:
I have a temporary fix for my use that finds the size and adds a width and height style to the element and then it looks how I expected.
Package
@tabler/icons
@tabler/icons-eps
@tabler/icons-pdf
@tabler/icons-png
@tabler/icons-webfont
@tabler/icons-sprite
@tabler/icons-preact
@tabler/icons-react
@tabler/icons-react-native
@tabler/icons-solid
@tabler/icons-svelte
@tabler/icons-vue
Figma plugin
source/main
other/not relevant
Version
3.24.0
Browser
Chrome/Chromium
Firefox
Safari
Edge
iOS Safari
Opera
Other/not relevant
Operating system
Windows
Linux
macOS
ChromeOS
iOS
Android
Other/not relevant
Steps to reproduce
Import IconCube (import { IconCube } from '@tabler/icons-svelte';)
Use icon with size attribute set as a CSS variable (<IconCube size="var(--fs-lg)" />)
Checklist
I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
The text was updated successfully, but these errors were encountered:
Got same issue here. I would like to use some library CSS variable to use the theme size for svg everywhere. I can set width/height properly, but it would be much more convenient to just set size. Will just follow this issue for update
Description
When I use the tabler/icons-svelte package, I use the large font size css variable for the size so I can keep my sizes consistent.
Firefox and Safari seem to handle this fine right now, but Chromium doesn't.
Firefox:


Chromium:


I have a temporary fix for my use that finds the size and adds a width and height style to the element and then it looks how I expected.
Package
Version
3.24.0
Browser
Operating system
Steps to reproduce
import { IconCube } from '@tabler/icons-svelte';
)<IconCube size="var(--fs-lg)" />
)Checklist
The text was updated successfully, but these errors were encountered: