Don't output unparsable arbitrary values (#7789)
* Refactor * Don’t output unparsable arbitrary values * Update changelog
This commit is contained in:
parent
c6097d59fc
commit
68d896bbbe
3 changed files with 76 additions and 42 deletions
|
|
@ -370,3 +370,17 @@ it('should be possible to read theme values in arbitrary values (with quotes) wh
|
|||
`)
|
||||
})
|
||||
})
|
||||
|
||||
it('should not output unparsable arbitrary CSS values', () => {
|
||||
let config = {
|
||||
content: [
|
||||
{
|
||||
raw: 'let classes = `w-[${sizes.width}]`',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
return run('@tailwind utilities', config).then((result) => {
|
||||
return expect(result.css).toMatchFormattedCss(``)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue