-
Notifications
You must be signed in to change notification settings - Fork 215
Description
See whatwg/html#9373 for more context about this issue. Also see the notes from the 2023 TPAC meeting.
There's a desire to add an attribute on <dialog> that adds "light dismiss" behavior to the dialog. The proposal is to add that via an attribute:
<dialog lightdismiss> I'm a light dismiss dialog </dialog>Adding lightdismiss to the <dialog> makes the dialog get closed (as if dialog.close() were called) when the user "light dismisses" it, e.g. by clicking outside the bounds of the dialog.
At TPAC, there was fairly good support for adding this behavior, and for adding it via a new attribute on <dialog>. But there was concern about the name of the attribute. There was a strong desire to have a name that links closely to close(). There were also comments that "light dismiss" is not well defined, and maybe Popover documentation should be updated to link to a new name that is shared with the proposed <dialog> feature.
So this issue is to bikeshed the proper name for "light dismiss", particularly as it relates to the attribute discussed above. Some preliminary ideas I heard in the meeting:
lightdismissclosebehavior=somethinglightclosesoftdismisssoftclosemaximaldismiss/minimaldismiss- {your idea here}