Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(tw3.4.0): Style children with the * variant
  • Loading branch information
francoismassart committed Dec 28, 2023
commit 5ba5598373fd3cb66db2fb983dfa49d805ea3483
9 changes: 9 additions & 0 deletions tests/lib/rules/no-custom-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,15 @@ ruleTester.run("no-custom-classname", rule, {
<label class="has-[:checked]:ring-indigo-500 has-[:checked]:text-indigo-900 has-[:checked]:bg-indigo-50">New :has() variant</label>
`,
},
{
code: `
<ul class="*:rounded-full *:border *:border-sky-100 *:bg-sky-50 *:px-2 *:py-0.5 dark:text-sky-300 dark:*:border-sky-500/15 dark:*:bg-sky-500/10">
<li>Sales</li>
<li>Marketing</li>
<li>SEO</li>
</ul>
`,
},
],

invalid: [
Expand Down