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

feat(runtime): make shadow root adopt scoped component styles #6028

Merged

Conversation

tomherni
Copy link
Contributor

What is the current behavior?

Currently, when a scoped component is inside a shadow root, the component styles are added to a <style> tag.

GitHub Issue Number: #6027

What is the new behavior?

If adopting stylesheets is supported then the scoped component styles are added to the shadow root's adopted stylesheets. The current behavior (adding styles to a <style> tag) remains as a fallback.

Does this introduce a breaking change?

  • Yes
  • No

Testing

Manual testing. I couldn't find relevant unit tests, and recently merged changes were also without unit tests, so I assume they are not yet in place for this file/feature.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 👍

@christian-bromann christian-bromann added this pull request to the merge queue Oct 11, 2024
Merged via the queue into ionic-team:main with commit 8ff3048 Oct 11, 2024
88 checks passed
@christian-bromann
Copy link
Member

This was released with @stencil/[email protected]

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