-
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jul 20, 2025
Replies: 1 comment 3 replies
-
|
Consider providing a git repo that reproduces the issue and we can take a look for you. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




I think the working example is a side-effect of how Vue renders "dynamic" HTML (when there are directives) vs "static" HTML.
The rendered HTML of the dynamic HTML looks like:
Compared to static:
Notice how the
<article>elements are rendered outside the<a>elements, allowing theirgrow-*classes to have an effect.Thus, to achieve a similar effect with class name bindings, add the
grow-*andw-*class names to the parent<a>element:<template> <div class="grow-1 hidden"></div> - <a href=""> - <article class="rounded-xl border-2 border-gray-100 bg-white w-60 mx-0 grow-10 md:grow-12 lg:grow-15 mb-5 @container"> + <a href="" class="grow-10 md:grow-12 lg:grow-15 w-60 "> + …