-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expose a stack of blocking elements #897
Copy link
Copy link
Open
Labels
accessibilityAffects accessibilityAffects accessibilityaddition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interest
Metadata
Metadata
Assignees
Labels
accessibilityAffects accessibilityAffects accessibilityaddition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interest
Previously:
Based on these discussions, especially the last one, I'd like to propose the following API to explain some of the magic of
<dialog>:We would generalize the "pending dialog stack" (which, note, is only used when
showModal()is called, not justshow()) to a "blocking element stack".Dialogs would take part in that stack and be fully explained by it and integrated into it. For example:
document.blockingElements.topafterdialogEl.showModal()would returndialogEl.document.blockingElements.pop()with an active modal dialog would make that dialog un-modal (but not hide it or remove it from the document), and make whatever was below it on the stack become the new blocking element.Ccing some people form the browser-accessibility-dev discussion: @marcysutton @alice @minorninth. Implementer interest would be especially helpful in moving this forward, @alice @minorninth.