has-argument-variantA variant Tailwind cannot test inside :has(), given as a has argument.
csszyx check lists it.A name in angle brackets is a value the message fills in.
has[csszyx] has-argument-variant: `has: { <key>: … }` asks for an element matching `<key>`, which Tailwind cannot test inside `:has()`, so the class matches nothing.
help: put the condition around it, `<key>: { has: { … } }`, and give `has` the element to look for, such as `has: { img: … }`.
docs: https://csszyx.com/e/has-argument-variant
group[csszyx] has-argument-variant: `group: { has: { <key>: … } }` asks for an element matching `<key>`, which Tailwind cannot test inside `:has()`, so the class matches nothing.
help: put the condition around it, `<key>: { group: { has: { … } } }`, and give `has` the element to look for.
docs: https://csszyx.com/e/has-argument-variant
peer[csszyx] has-argument-variant: `peer: { has: { <key>: … } }` asks for an element matching `<key>`, which Tailwind cannot test inside `:has()`, so the class matches nothing.
help: put the condition around it, `<key>: { peer: { has: { … } } }`, and give `has` the element to look for.
docs: https://csszyx.com/e/has-argument-variant
not[csszyx] has-argument-variant: `not: { has: { <key>: … } }` asks for an element matching `<key>`, which Tailwind cannot test inside `:has()`, so the class matches nothing.
help: put the condition around it, `<key>: { not: { has: { … } } }`, and give `has` the element to look for.
docs: https://csszyx.com/e/has-argument-variant
Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'has-argument-variant': 'warn' }.
The level sets how the build and csszyx check report it. It does not change a console line, and it does not stop a thrown error.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
form | 'has' | 'group' | 'peer' | 'not' | |
key | string |