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
When using unocss, putting icon class directly in solid-start's A will not display the icon.
The icon name has to be put into a class=<icon-name> format.
But with the normal a DOM, it is shown correctly.
Expected behavior 🤔
A and a will behave the same and both show the icon correctly.
Steps to reproduce 🕹
Steps:
Use A to create a link
put an css-like icon name as a class, without the class=<icon> syntax
render the page
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered:
It's because it isn't a known boolean attribute we treat it like a standard attribute when passed through a component. I suppose the native behavior of it working like a boolean is unexpected but this is where things landed after a long debate around this. solidjs/solid#1101
The weird part is I wonder if this bug got re-introduced again. I thought we resolved that we should always treat non-boolean attributes as ="true"
In setting up for SolidStart's next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed by mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience. See #1139 for more details.
Duplicates
Latest version
Current behavior 😯
When using unocss, putting icon class directly in solid-start's
A
will not display the icon.The icon name has to be put into a
class=<icon-name>
format.But with the normal
a
DOM, it is shown correctly.Expected behavior 🤔
A
anda
will behave the same and both show the icon correctly.Steps to reproduce 🕹
Steps:
A
to create a linkclass=<icon>
syntaxContext 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: