Improve before and after variants (#5820)
* remove unused `withRule` * ensure all ::before and ::after elements have content * update --tw-content for the content plugin * simplify `before` and `after` variants * update tests, to reflect changes * make new `format` and `wrap` API's private for now * allow returning a format string from `addVariant` callback * add `content: var(--tw-content)` for before/after variants * update tests to add `content: var(--tw-content)` * update changelog
This commit is contained in:
parent
f12c0e1fa5
commit
36c880abab
12 changed files with 69 additions and 63 deletions
|
|
@ -968,5 +968,6 @@
|
|||
will-change: transform;
|
||||
}
|
||||
.content-none {
|
||||
content: none;
|
||||
--tw-content: none;
|
||||
content: var(--tw-content);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue