Skip to content

Commit

Permalink
Updated styling example in apps/compare
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDoge committed Oct 18, 2024
1 parent 39373bb commit 630aef7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function scope(css: string): Lifecycle.OnConnected {
const scopeId = Math.random().toString(36).slice(2);
document.adoptedStyleSheets.push(
sheet(
`@scope ([data-scope="${scopeId}"]) to ([data-scope]:not([data-scope="${scopeId}"]) > *) {${css}}`,
`@scope ([data-scope="${scopeId}"]) to ([data-scope] > *) {${css}}`,
),
);
element.dataset.scope = scopeId;
Expand Down

0 comments on commit 630aef7

Please sign in to comment.