Skip to content

Set host element to a block its Shadow DOM#72

Merged
koddsson merged 1 commit intomainfrom
use-shadow-dom-for-css
Feb 16, 2022
Merged

Set host element to a block its Shadow DOM#72
koddsson merged 1 commit intomainfrom
use-shadow-dom-for-css

Conversation

@koddsson
Copy link
Copy Markdown
Contributor

Set the styles of the <include-fragment> element in a Shadow DOM instead of a CSS file that needs to be imported with the component.

📚 References

https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM

@koddsson koddsson requested a review from a team as a code owner February 14, 2022 16:31
Copy link
Copy Markdown
Contributor

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

This is a worthwhile change, as it lets us add features around providing default loading states, also using named slots for loading/error states. In other words it's a good technical change that doesn't impact features today, but lets us expand features tomorrow.

@koddsson koddsson merged commit 324d9b5 into main Feb 16, 2022
@koddsson koddsson deleted the use-shadow-dom-for-css branch February 16, 2022 09:59
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