Skip to content
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

fix: apply CssImport to exported webcomponent (#19740) (CP: 24.3) #19746

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

tltv
Copy link
Member

@tltv tltv commented Aug 5, 2024

CssImport annotation with just a value attribute can be injected automatically to shadow root of all exported web components (embedded applications) using Constructable StyleSheets. WebComponentExporter should have a theme to make automation work properly in theme-generator.js. Theme property "autoInjectGlobalCssImports": true in theme.json enable auto injection. Disabled by default.

Fixes: #19700

tltv and others added 2 commits August 5, 2024 15:38
CssImport annotation with just a value attribute can be injected automatically to shadow root of all exported web components (embedded applications) using Constructable StyleSheets. WebComponentExporter should have a theme to make automation work properly in theme-generator.js. Theme property "autoInjectGlobalCssImports": true in theme.json enable auto injection. Disabled by default.

Fixes: #19700

Co-authored-by: Marco Collovati <marco@vaadin.com>
Copy link

github-actions bot commented Aug 5, 2024

Test Results

1 055 files  ± 0  1 055 suites  ±0   1h 15m 51s ⏱️ + 3m 12s
6 822 tests + 3  6 777 ✅ + 3  45 💤 ±0  0 ❌ ±0 
7 131 runs  +18  7 075 ✅ +18  56 💤 ±0  0 ❌ ±0 

Results for commit fae564f. ± Comparison against base commit 41fd9d7.

♻️ This comment has been updated with latest results.

Copy link

sonarcloud bot commented Aug 5, 2024

@mcollovati mcollovati merged commit d26c7f8 into 24.3 Aug 6, 2024
26 checks passed
@mcollovati mcollovati deleted the cherry-pick-19740-to-24.3 branch August 6, 2024 05:28
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.3.17.

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

Successfully merging this pull request may close these issues.

3 participants