Tailwind prefix not working with custom data attributes Tailwind @3.4.3 #13798
-
When working with a custom tailwind prefix e.g 'tws-', it works well with normal values like 'tws-bg-blue-300', but the styles dont apply when I do something like 'tws-data-[state=closed]'. I don't know if this is the correct syntax for data attirbutes with custom prefixes. My version of tailwindcss is 3.4.3 and all the other styles work fine but this just doesn't. Here is a reproduction link of the error in the tailwind playground: https://play.tailwindcss.com/5KPeSPAlW1?size=814x720 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
As per the documentation:
See this fixed example of your Tailwind Play.