Re: [w3c/webcomponents] [Shadow] Slotting indirect children (#574)

Maybe traversing up is a good compromise in terms of modularity.

On Sep 28, 2016 8:46 AM, "Joel Richard" <notifications@github.com> wrote:

> @trusktr <https://github.com/trusktr> my tabs example would then become:
>
> <my-tabs id="tabs">
>     <my-tab>
>         <my-tab-title root-host="tabs" slot="title">
>             Title 1
>         </my-tab-title>
>         <my-tab-content root-host="tabs" slot="content">
>             Content 1
>         </my-tab-content>
>     </my-tab>
>     ...
> </my-tabs>
>
> Personally, I would like it to be more implicit. I do not think that id
> should be used for this purpose. In practise, you could not use just tabs
> because there might be other custom elements of the same type on this page
> and then the ids would conflict. After copying the markup, you would then
> always have to adjust it at different places.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/webcomponents/issues/574#issuecomment-250207402>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AASKzsjTYc215f6gFdZ599L6TGlaNI2fks5quot0gaJpZM4KFPC->
> .
>


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/574#issuecomment-250332691

Received on Wednesday, 28 September 2016 23:39:57 UTC