You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building interactions that rely on events. The native <dialog> element supports cancel and close events, but their behaviors aren’t reliable. The <dialog> does not support an open event at all.
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.
to allow folks to make a dialog that is top layer (by setting 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)
to allow for light dismiss (but I'm not sure if that's already built in to a11y-dialog?)
It would make sense (to me) though, to default to non-modal dialogs when popover is added.
KittyGiraudel
changed the title
[Discussion] Can popover api be utilized in a11y-dialog?
[Discussion] Can the popover API be utilized in a11y-dialog?
Aug 20, 2024
KittyGiraudel
changed the title
[Discussion] Can the popover API be utilized in a11y-dialog?
[Discussion] Can the Popover API be utilized in a11y-dialog?
Aug 20, 2024
KittyGiraudel
changed the title
[Discussion] Can the Popover API be utilized in a11y-dialog?
Can the Popover API be utilized in a11y-dialog?
Aug 20, 2024
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 🤔
The text was updated successfully, but these errors were encountered: