x64Bits / solid-icons

The simplest way to use icons in SolidJS
https://solid-icons.vercel.app
MIT License
284 stars 18 forks source link

Color in class needs to be !important now. #19

Closed pinko64 closed 1 year ago

pinko64 commented 1 year ago

I used to be able to do this: <Available class={store?.me?.status === "available" && s({ color: col })} onClick={() => setMyStatus("available")} />

But now there is somewhy "currentcolor" set as color stylesheet... so i have to do: <Available class={store?.me?.status === "available" && s({${col} !important})} onClick={() => setMyStatus("available")} />

So there was a breaking change in some patch a while ago. Why do i need to ovverride the color style now? º¿º¬

x64Bits commented 1 year ago

Sorry for the delay @pinko64, what you mention is correct, there was a change that affected when you declare the class in the icon, I will see if it does not conflict with the other use cases and I will try to send a new version, greetings.

x64Bits commented 1 year ago

Hi 👋🏼, version 1.0.5 fixes this problem.