Skip to content

Conversation

DRiFTy17
Copy link
Collaborator

@DRiFTy17 DRiFTy17 commented Apr 3, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: N
  • Docs have been added/updated: Y
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

Created a new BaseLitElement class that we will use instead of extending LitElement directly on our Lit-based components. This provides a default implementation for the adoptedCallback() to handle re-adopting CSSStyleSheet instances in new documents.

We already do this for the standard non Lit-based components in Forge, so this just brings the same support to our Lit-based components.

@DRiFTy17 DRiFTy17 added the patch Increment the patch version when merged label Apr 3, 2025
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner April 3, 2025 15:44
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 374da21 into main Apr 3, 2025
7 checks passed
@DRiFTy17 DRiFTy17 deleted the adopt-styles-lit-base branch April 3, 2025 19:20
Copy link
Contributor

github-actions bot commented Apr 3, 2025

🚀 PR was released in v3.8.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants