-
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: