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

Set host element to a block its Shadow DOM #72

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

koddsson
Copy link
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
Member

@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