Skip to content

Commit

Permalink
filter rules can be used alone and modify defaults selector to includ…
Browse files Browse the repository at this point in the history
…e `::before` and `::after`
  • Loading branch information
sastan committed Jan 27, 2022
1 parent 1ed704a commit 966fcb9
Show file tree
Hide file tree
Showing 6 changed files with 661 additions and 220 deletions.
6 changes: 6 additions & 0 deletions .changeset/mighty-papayas-compare.md
@@ -0,0 +1,6 @@
---
'@twind/preset-tailwind': patch
'twind': patch
---

filter rules can be used alone and modify defaults selector to include `::before` and `::after`
2 changes: 1 addition & 1 deletion packages/preset-tailwind/src/preflight.test.ts
Expand Up @@ -91,7 +91,7 @@ test('custom preflight', () => {
assert.strictEqual(tw('underline'), 'underline')

assert.deepEqual(tw.target, [
'*{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}',
'*,::before,::after{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}',
'*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}',
"::before,::after{--tw-content:''}",
'html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}',
Expand Down

0 comments on commit 966fcb9

Please sign in to comment.