Skip to content
Discussion options

You must be logged in to vote

That's a good question, it's pretty specific to shadow dom. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/slot

Unfortunately, we've used it for styling in documentation, which means it would be hard to change without causing a breaking change.
https://react-spectrum.adobe.com/react-aria/Calendar.html#error-message see "show css" on this example.

We could add a data-slot in addition so people can choose to have that instead in cases where it might conflict. Maybe if enableShadowDOM feature flag is used it could switch to this automatically.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by will-stone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants