Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal Size? #21

Open
ghost opened this issue Jun 30, 2023 · 0 comments
Open

Decimal Size? #21

ghost opened this issue Jun 30, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 30, 2023

I'm using a Bootstrap template that I bought and it has some decimal size for regular feather icons. The way they did it was to set the width and the height of the feather icon on the element itself, for example:
<span data-feather="x" style="width: 12.8px; height: 12.8px;"></span>

This will make the feather icons width and height becomes 12.8 (checked using inspect element).

But in Svelte Feather Icons, I can just do:
<XIcon size="12.8" />

Well except that I think Svelte Feather Icons don't accept decimal value. I guess it got rounded down to the nearest integer because when I check it with inspect element, it becomes 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants