-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
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 interesttopic: dialogThe <dialog> elementThe <dialog> elementtopic: forms
Description
dialog elements are a great addition and I'm glad they're getting implemented, but a key part of their functionality relies on JavaScript: to open a <dialog> you need to use JavaScript to set the open attribute.
It'd be great if there was a way to make a <a> or a <button> elements capable of opening dialogs.
Precident already exists for page interactivity baked into HTML - for example <a href="#.."> can already scroll the page, and <details> elements are capable of hiding elements behind interactivity, so I think it stands to reason <dialog> elements could be opened by other page elements.
sindresorhus, guest271314, js-choi, snuggs, patrickdark and 194 more
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 interesttopic: dialogThe <dialog> elementThe <dialog> elementtopic: forms