kobalte icon indicating copy to clipboard operation
kobalte copied to clipboard

Tailwindcss Plugin `data-animate` and `data-visible` not correct

Open xhanl opened this issue 1 year ago • 1 comments

Describe the bug

When we use ui-animate or ui-visible, the tailwind plugin will generate &[data-animate] or &[data-visible]. But the component like Skeleton only work with &[data-animate="true"] and &[data-visible="true"].

To Reproduce

  1. Create a Skeleton component.
  2. Create some style with tailwind, ui-animate or ui-visible not work.
  3. Replace ui-animate to [&[data-animate=true]] or ui-visible to [&[data-visible=true]], work as expect.

Expected behavior

  • ui-animateshould work when the Skeleton can animate.
  • ui-visible should work when the Skeleton is visible.

Screenshots Kobalte Skeleton Example, the css use [data-animate="true"] or [data-visible="true"]. 1111

Tailwind plugin, the ui-animate or ui-visible will generate &[data-animate] or &[data-visible]. 2222

Desktop (please complete the following information):

xhanl avatar Jul 27 '24 14:07 xhanl

This looks like an implementation difference from Skeleton, I'll try to make it the same as all others.

jer3m01 avatar Jul 27 '24 19:07 jer3m01