From 7941e4077a0ad15fed4af5acf8229257eba971d0 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Fri, 21 Apr 2023 18:48:46 +0300 Subject: [PATCH] fix(shadow-wrapper): prepend css-src style instead of append to make easier to override styles via `shadowStyles` --- blocks/ShadowWrapper/ShadowWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/ShadowWrapper/ShadowWrapper.js b/blocks/ShadowWrapper/ShadowWrapper.js index 1f64ad25c..d5bd893d0 100644 --- a/blocks/ShadowWrapper/ShadowWrapper.js +++ b/blocks/ShadowWrapper/ShadowWrapper.js @@ -31,7 +31,7 @@ export class ShadowWrapper extends Block { }); }); }; - this.shadowRoot.appendChild(link); + this.shadowRoot.prepend(link); } else { this.render(); this.removeAttribute('hidden');