Skip to content

Commit 3c9afd6

Browse files
authored
refactor: remove unnecessary adoptedStyleSheets fallback (#9586)
1 parent df2adc7 commit 3c9afd6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎packages/vaadin-themable-mixin/src/css-utils.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ function getEffectiveStyles(component) {
3333
* @param {HTMLElement} component
3434
*/
3535
export function applyInstanceStyles(component) {
36-
// The adoptStyles function may fall back to appending style elements to shadow root.
37-
// Remove them first to avoid duplicates.
38-
[...component.shadowRoot.querySelectorAll('style')].forEach((style) => style.remove());
39-
4036
adoptStyles(component.shadowRoot, getEffectiveStyles(component));
4137
}
4238

0 commit comments

Comments
 (0)