You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSS from materialdesignicons.css is injected into the Shadow Root, but the @font-face rules still reference relative paths like ../fonts/materialdesignicons-webfont.woff2. Because those URLs don’t resolve in the Shadow DOM, the font files never load and the icons don’t appear.
How can I correctly include or load icon font files (e.g. Material Design Icons) in my Shadow Root when using WXT’s cssInjectionMode: 'ui'?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m building a browser extension with WXT and Vuetify, and I need to render components inside a Shadow Root. In my content script I’ve set up:
The CSS from materialdesignicons.css is injected into the Shadow Root, but the @font-face rules still reference relative paths like ../fonts/materialdesignicons-webfont.woff2. Because those URLs don’t resolve in the Shadow DOM, the font files never load and the icons don’t appear.
How can I correctly include or load icon font files (e.g. Material Design Icons) in my Shadow Root when using WXT’s cssInjectionMode: 'ui'?
Beta Was this translation helpful? Give feedback.
All reactions