Skip to content

Commit

Permalink
fix(shadow-wrapper): prepend css-src style instead of append to make …
Browse files Browse the repository at this point in the history
…easier to override styles via `shadowStyles`
  • Loading branch information
nd0ut committed Apr 21, 2023
1 parent cf6bc8a commit 7941e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/ShadowWrapper/ShadowWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ShadowWrapper extends Block {
});
});
};
this.shadowRoot.appendChild(link);
this.shadowRoot.prepend(link);
} else {
this.render();
this.removeAttribute('hidden');
Expand Down

0 comments on commit 7941e40

Please sign in to comment.