8000 Don't prefix arbitrary classes in `peer`/`group` variants by thecrypticace · Pull Request #11454 · tailwindlabs/tailwindcss · GitHub
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
use foo instead of lol
  • Loading branch information
RobinMalfait committed Jun 28, 2023
commit 8e2a3df38f521182d2c4fd80ba35adcb8d0059ae
10 changes: 5 additions & 5 deletions tests/prefix.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,10 @@ test('does not prefix arbitrary group/peer classes', async () => {
content: [
{
raw: html`
<div class="tw-group tw-peer lol">
<div class="group-[&.lol]:tw-flex"></div>
<div class="tw-group tw-peer foo">
<div class="group-[&.foo]:tw-flex"></div>
</div>
<div class="peer-[&.lol]:tw-flex"></div>
<div class="peer-[&.foo]:tw-flex"></div>
`,
},
],
Expand All @@ -632,8 +632,8 @@ test('does not prefix arbitrary group/peer classes', async () => {
const result = await run(input, config)

expect(result.css).toMatchFormattedCss(css`
.tw-group.lol .group-\[\&\.lol\]\:tw-flex,
.tw-peer.lol ~ .peer-\[\&\.lol\]\:tw-flex {
.tw-group.foo .group-\[\&\.foo\]\:tw-flex,
.tw-peer.foo ~ .peer-\[\&\.foo\]\:tw-flex {
display: flex;
}
`)
Expand Down