Skip to content

Commit

Permalink
fix ::backdrop inheritance issue for older browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 13, 2024
1 parent 52e06c7 commit 038e54e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/design-tokens/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ function main(): void {
{
type: 'tokens',
tokens: [...light, ...shared],
selectors: [':root'],
selectors: [':root, ::backdrop'],
colorScheme: 'light',
},
],
'dark': [
{
type: 'tokens',
tokens: [...dark, ...shared],
selectors: [':root'],
selectors: [':root, ::backdrop'],
colorScheme: 'dark',
},
],
Expand All @@ -80,13 +80,13 @@ function main(): void {
{
type: 'tokens',
tokens: [...light, ...shared],
selectors: [':root'],
selectors: [':root, ::backdrop'],
colorScheme: 'light',
},
{
type: 'tokens',
tokens: dark,
selectors: ['@media (prefers-color-scheme: dark)', ':root'],
selectors: ['@media (prefers-color-scheme: dark)', ':root, ::backdrop'],
colorScheme: 'dark',
},
{
Expand Down

0 comments on commit 038e54e

Please sign in to comment.