Skip to content

Conversation

DiegoCardoso
Copy link
Contributor

Description

When the user uses the exporting/print functionality in a vaadin-chart, the component briefly copies the CSS in the shadow root to the body. The CSS properties defined insinde the :host won't work in that case and the exported will result in a dark image.

DiegoCardoso and others added 3 commits August 6, 2025 13:05
When the user uses the exporting/print functionality in a
`vaadin-chart`, the component briefly copies the CSS in the shadow root
to the `body`. The CSS properties defined insinde the `:host` won't work
in that case and the exported will result in a dark image.
@web-padawan web-padawan force-pushed the fix/charts/exporting-styled-mode branch from 5de7d89 to 390f58f Compare August 6, 2025 10:06
@web-padawan
Copy link
Member

There are still visual test failures:

  packages/charts/test/visual/base/chart.test.js:
   ❌ chart > exporting > styled mode
        Error: Visual diff failed. New screenshot is 2.55% different.

@DiegoCardoso
Copy link
Contributor Author

There are still visual test failures:

  packages/charts/test/visual/base/chart.test.js:
   ❌ chart > exporting > styled mode
        Error: Visual diff failed. New screenshot is 2.55% different.

I am trying to understand what is causing this issue, as running the update screenshots task locally won't give any difference.

@DiegoCardoso DiegoCardoso force-pushed the fix/charts/exporting-styled-mode branch from f764961 to 5e17e9b Compare August 7, 2025 09:07
@DiegoCardoso DiegoCardoso force-pushed the fix/charts/exporting-styled-mode branch from 5e17e9b to 366e135 Compare August 7, 2025 09:45
Copy link

sonarqubecloud bot commented Aug 7, 2025

@web-padawan web-padawan removed the request for review from vursen August 7, 2025 10:10
@web-padawan web-padawan merged commit 89683f8 into main Aug 7, 2025
9 checks passed
@web-padawan web-padawan deleted the fix/charts/exporting-styled-mode branch August 7, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants