Skip to content

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
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

2 participants