Skip to content

Commit

Permalink
fix: add ::backdrop to universal defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Oct 3, 2022
1 parent 65ea2f6 commit cd694ce
Show file tree
Hide file tree
Showing 6 changed files with 221 additions and 216 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-cars-trade.md
@@ -0,0 +1,5 @@
---
'@twind/preset-tailwind': patch
---

Add `::backdrop` to universal defaults
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, [
'*,::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,::backdrop{--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:#e5e7eb}',
"::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 cd694ce

Please sign in to comment.