- From: Ryosuke Niwa <notifications@github.com>
- Date: Mon, 24 Jun 2019 19:51:26 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 25 June 2019 02:51:48 UTC
Setting `tabindex=-1` on a shadow host as the effect of disabling the focus of the component. We have builtin elements like input and video elements, and if `tabindex=-1` is set on either element, then its content including buttons and media controls aren't focusable. That is, the intention of setting `tabindex=-1` is to make that particular reusable element not focusable including its implementation details. Using `tabindex=-1` instead of `delegatesFocus` for focus delegation is a wrong thing to do, and we should really [add `delegatesFocus` back to the HTML specification](https://github.com/whatwg/html/issues/2013) -- 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-505258573
Received on Tuesday, 25 June 2019 02:51:48 UTC