Open zerdox-scalr opened 6 months ago
Probably worth getting @hidde’s opinion on whether it‘s worth it / a good idea as he is the person I can think of who knows most about the popover API.
It seems useful to me to include it optionally:
popover
); this is especially helpful for folks that may have <dialog>
s that are shown with showModal()
in their applications. Such dialogs will be in the top layer, so any a11y-dialog
-created dialog that wants to participate in the same stacking context would need to be in the top layer too (and therefore need a popover
attribute)It would make sense (to me) though, to default to non-modal dialogs when popover is added.
Why a11y-dialog
https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using#dismissing_popovers_automatically_via_a_timer
Maybe we can make a11y-dialog even more lightweight by adding opt-in to utilize popover api? A popover api plugin for a11y-dialog :thinking: