Open melanierichards opened 3 years ago
Maybe? What other elements might it be extended to? All as a global? Are there some other compelling use cases you could share that don't involve shadow dom (I feel like you could implement the non-covered bits this yourself if you have your own shadow dom for the most part, but maybe I've underthought it)?
The Open UI Community Group just discussed [Popup] Should the delegatesfocus attribute be extended to other HTML elements?
.
@melanierichards Is delegatesfocus is based on the delegatesFocus from Element.attachShadow()? I noticed the MDN documentation for this says focus is only transferred "When a non-focusable part of the shadow DOM is clicked", i.e. suggesting it does not automatically steal focus.
There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.
The
popup
proposal specifies adelegatesfocus
attribute, which tells the user agent to move focus to thepopup
's first focusable descendent when thepopup
is shown.delegatesfocus
may be a candidate for broader applicability. We should discuss how/whether the attribute should be extended to other HTML elements.