Re: [w3c/webcomponents] tabIndex -1 behaves differently on non-Custom Elements (#774)

I think I understand how @TakayoshiKochi wanted to circumvent this problem:

@JoelEinbinder, what if you set `delegatesFocus: true` instead of `tabindex=-1`?

That should both make your shadow host div _appear_ tab- and click-focusable; the div will immediately forward focus to its shadow tree's tab order's _first_ element\*. Read his [explanation about delegatesFocus](https://github.com/w3c/webcomponents/issues/126#issuecomment-188160444) for the details.

\* The shadow tree's tab order's _last_  element, when Shift+TAB focus the shadow host div.

-- 
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/774#issuecomment-456064029

Received on Monday, 21 January 2019 12:53:30 UTC