Skip to content

[v4] can't generate an output file with data-theme attribute #15813

Answered by wongjn
aromko asked this question in Help
Discussion options

You must be logged in to vote

Found this in Tailwind's tests:

test('Utilities can be wrapped in a selector', async () => {
// This is the v4 equivalent of `important: "#app"` from v3
let input = css`
#app {
@tailwind utilities;
}
`
let compiler = await compile(input)
expect(compiler.build(['underline', 'hover:line-through'])).toMatchInlineSnapshot(`
"#app {
.underline {
text-decoration-line: underline;
}
.hover\\:line-through {
&:hover {
@media (hover: hover) {
text-decoration-line: line-through;
}
}
}
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by aromko
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