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
I have a problem with the approach taken in resolving #150. Using that approach it is not possible to set different classes on the <ile-root> wrapper and the component it encloses. Seems like setting just class makes both take the same value.
A Hack, when ever applicable:
Make use of "multi/zero root"-Templates.
Let's say you had use for an <h2> above your <div> in the Component. Then iles won't propagate the attributes to any of those tags and just keep them on <ile-root>
Same if you would ditch the <div> and just wrote <template>Hello World!</template>. Your styles for other opportunities may then obviously take into account that they need to apply to another tag.
iles
andvite
.Description 📖
This is a follow-up to the resolution of #150.
I have a problem with the approach taken in resolving #150. Using that approach it is not possible to set different classes on the
<ile-root>
wrapper and the component it encloses. Seems like setting justclass
makes both take the same value.Reproduction 🐞
Taking the same example as #150. The code
now produces
Consider if
.child
has CSS rule likefont-size: 2em
, the above code would make the font 4 times larger, not two. This is a pretty unexpected result.Dependencies Info
Run
npx iles info
andpnpm list
(ornpm list
) and provide the output:The text was updated successfully, but these errors were encountered: