Closed kristoferjoseph closed 2 years ago
<my-p> <slot></slot> </my-p>
<my-p> <slot name="title"></slot> </my-p>
<my-rad-p> <my-p></my-p> </my-rad-p>
<my-rad-p> <my-p> <slot></slot> </my-p> </my-rad-p>
<my-rad-p> <my-p> <slot name="title"></slot> </my-p> </my-rad-p>
I want to support this use case in the future to better align with the spec, but it needs to be supported in a way that doesn't compromise performance.
Browser reproduction https://gist.github.com/kristoferjoseph/004c850b3778a5571596d053724bcd74
Currently Enhance supports nested unnamed slots, nested named slots, and nested custom elements.
✅ Unnamed slot
✅ Named slot
✅ Custom Element
Enhance does not however support nested slots inside a nested custom element.
❌ Custom Element with unnamed slot
❌ Custom Element with named slot
I want to support this use case in the future to better align with the spec, but it needs to be supported in a way that doesn't compromise performance.