ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.11k stars 67 forks source link

Named groups not supported #43

Closed rrmesquita closed 7 months ago

rrmesquita commented 1 year ago

Right now if I use this library like the following, it will not work as expected:

<AccordionContent class="group/my-named">
  <div class="group-radix-state-closed/my-named:opacity-0">
    // ...
  </div>
</AccordionContent>

I'm not sure when this named groups feature was implemented in TailwindCSS, but a helpful guide for how to make this library work with it can be found here: https://tailwindcss.com/docs/plugins#parent-and-sibling-states

I can work on this myself if I find time and if @ecklf shows interest. Either way just leaving this here so it gets documented.

Thanks!

ecklf commented 7 months ago

Support added in 3.0.0