You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class group-has-[[data-test=test]]/test-modifier:block doesn't render any CSS, though it appears valid (at least according to the intellisense). Interestingly, if you do any of the following, then it works:
remove the hyphen from the modifier (e.g. /test instead of /test-modifier)
remove the value from the data attribute (e.g. [data-test])
add any selector after the data attribute one (e.g. [data-test=test]:checked)
The text was updated successfully, but these errors were encountered:
Right now the has variant doesn't accept a modifier (what do you expect it to do?). In case of group-has-*/modifier-name the modifier-name belongs to the group part so that you can use a different group with a different name.
What is the goal of the modifier in this case?
benface
changed the title
Specific has- utility with hyphenated modifier doesn't render CSS
Specific group-has- utility with hyphenated modifier doesn't render CSS
Mar 11, 2024
What version of Tailwind CSS are you using?
v3.4.1
What build tool (or framework if it abstracts the build tool) are you using?
Tailwind Play
What version of Node.js are you using?
Tailwind Play
What browser are you using?
Any
What operating system are you using?
Any
Reproduction URL
https://play.tailwindcss.com/dVDTGsBgzE
Describe your issue
The class
group-has-[[data-test=test]]/test-modifier:block
doesn't render any CSS, though it appears valid (at least according to the intellisense). Interestingly, if you do any of the following, then it works:/test
instead of/test-modifier
)[data-test]
)[data-test=test]:checked
)The text was updated successfully, but these errors were encountered: