Skip to content

Commit da5cd32

Browse files
committed
fix: Improve CSS reset inside shadow roots
1 parent edf33fd commit da5cd32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/wxt/src/utils/content-script-ui/shadow-root.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function createShadowRootUi<TMounted>(
2222
const css: string[] = [];
2323

2424
if (!options.inheritStyles) {
25-
css.push(`/* WXT Shadow Root Reset */ body{all:initial;}`);
25+
css.push(`/* WXT Shadow Root Reset */ :host{all:initial !important;}`);
2626
}
2727
if (options.css) {
2828
css.push(options.css);

0 commit comments

Comments
 (0)