Skip to content

WebComponentExporter should copy @font-face declarations to document body in V25 #21607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #7691
rolfsmeds opened this issue Jun 3, 2025 · 0 comments
Open
Tracked by #7691

Comments

@rolfsmeds
Copy link

rolfsmeds commented Jun 3, 2025

Describe your motivation

In V24, a separate document.css could be used in a theme loaded into an exported component to load certain css into the document body instead of the exporter component's shadow DOM, as some css doesn't work inside shadow DOM.

In 2025, the only css that still needs to be in the document root is @font-face declarations. In V25, the entire theme folder concept is retired, including document.css, so a different solution is needed for loading fonts as part of exported components.

Describe the solution you'd like

Any @font-face declarations found in stylesheets loaded into exported components (using @CssImport, as @Theme is deprecated) should be automatically copied (moved?) to the document root.

Related: #21272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants