Skip to content

Commit

Permalink
Fix missing ::backdrop preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Jul 9, 2022
1 parent 39b536e commit b1fd9e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/preflights.ts
Expand Up @@ -8,8 +8,10 @@ export const preflights: Preflight[] = [
{
layer: 'preflights',
getCSS(ctx: PreflightContext<Theme>) {
if (ctx.theme.preflightBase)
return `${wxPerfix},::before,::after{${entriesToCss(Object.entries(ctx.theme.preflightBase))}}`
if (ctx.theme.preflightBase) {
const css = entriesToCss(Object.entries(ctx.theme.preflightBase))
return `*,::before,::after{${css}}::backdrop{${css}}`
}
},
},
]
Expand Down

0 comments on commit b1fd9e2

Please sign in to comment.