Skip to content

Bikeshed a name for "light dismiss for dialog" #834

@mfreed7

Description

@mfreed7

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:

  • lightdismiss
  • closebehavior=something
  • lightclose
  • softdismiss
  • softclose
  • maximaldismiss / minimaldismiss
  • {your idea here}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions