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

is-land for SVG icons? #1

Open
wiesson opened this issue Dec 2, 2022 · 1 comment
Open

is-land for SVG icons? #1

wiesson opened this issue Dec 2, 2022 · 1 comment

Comments

@wiesson
Copy link

wiesson commented Dec 2, 2022

I'd like to use the currentColor feature to change the color of SVG icons (hover, in a different context (such as warning, success, ...) so an image tag with src=..path/to/svg is not an option.

Does it make sense to use "is-land" for icons so that they are not hydrated and stay compact?

// This ticket it's not really an issue, just curious what do think about that (or maybe there are even other options I have missed)

@Lucasmiguelmac
Copy link

Hi Wiesson!

What this feature is for is hydrating JS components. So you could use this for your case.

I encourage you to try it for yourself. Although it should work in paper, this is a fairly new thing.

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

2 participants