Should the slot prop make it to the DOM? #8858
-
| 
         Hi 👋🙂 Before I log this as a bug, should the   
Thanks, Will.  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
         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. We could add a   | 
  
Beta Was this translation helpful? Give feedback.

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-slotin addition so people can choose to have that instead in cases where it might conflict. Maybe ifenableShadowDOMfeature flag is used it could switch to this automatically.