Skip to content

Commit

Permalink
Add group and peer variants to test
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Oct 14, 2022
1 parent f99dcb2 commit 6426a9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/arbitrary-variants.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ it('should support aria variants', () => {
<div>
<div class="aria-checked:underline"></div>
<div class="aria-[sort=ascending]:underline"></div>
<div class="group-aria-checked:underline"></div>
<div class="peer-aria-checked:underline"></div>
</div>
`,
},
Expand All @@ -643,6 +645,12 @@ it('should support aria variants', () => {
.aria-\[sort\=ascending\]\:underline[aria-sort='ascending'] {
text-decoration-line: underline;
}
.group[aria-checked='true'] .group-aria-checked\:underline {
text-decoration-line: underline;
}
.peer[aria-checked='true'] ~ .peer-aria-checked\:underline {
text-decoration-line: underline;
}
`)
})
})
Expand Down

0 comments on commit 6426a9d

Please sign in to comment.