Skip to content

generated class with has-[role=*] showing syntax error warning #18707

Answered by wongjn
imaksp asked this question in Help
Discussion options

You must be logged in to vote

It is incorrect CSS syntax, but it's because the class name is incorrect Tailwind syntax. It should be has-[[role=checkbox]]:w-px, (double square brackets).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@imaksp
Comment options

Answer selected by imaksp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18706 on August 11, 2025 07:00.