-
Notifications
You must be signed in to change notification settings - Fork 71
Focus should work in shadow DOM in addition to light DOM #192
Comments
Hi @helenxywu, the custom element needs to be focusable (aka should have |
I'm having an issue with this behavior: I'm using paper-dialog to wrap and display various forms. These forms are components by themselves - e.g. share-dialog, signup-dialog etc. Paper-dialog gets these forms as a child. I found that I'm unable to tab from field to field inside my forms, because paper-dialog considers my form an atomic element, and ignores tabbable elements in the shadow dom. I'm having a hard time finding a workaround that doesn't require me to rewrite a huge amount of code. |
Here's a workaround I've come up with. I hope Polymer team can make this obsolete:
|
The |
Ideally, the platform should help us with something like this whatwg/html#897; with that, all the overlay would do is: // on open
document.blockingElements.push(this);
// on close
document.blockingElements.remove(this); |
Description
When an element with iron overlay behavior contains custom elements, the overlay with backdrop should be able to tab into the shadow DOM of those elements. If not a full fix, would be nice to be able to provide focusable nodes to the containing element and have a behavior that finds the focusable nodes in an element.
Expected outcome
The elements inside of shadow DOM should be tabbed to.
Actual outcome
Only elements in light DOM can be tabbed to (captured by focusableNodes)
Steps to reproduce
The text was updated successfully, but these errors were encountered: