Skip to content

Commit 04255df

Browse files
committed
feat: close dialog on backdrop click
The dialog is not that "important" so we should probably allow dismissing it more easily.
1 parent 30d1b82 commit 04255df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/apps/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Dialog = ({app, modal, toggleModal}) => {
6868
}
6969

7070
return html`
71-
<dialog ref=${ref} id=${app.app_id} onClose=${() => toggleModal(false)} aria-labelledby="${app.app_id}_label" aria-describedby="${app.app_id}_desc">
71+
<dialog ref=${ref} id=${app.app_id} onClose=${() => toggleModal(false)} closedby="any" aria-labelledby="${app.app_id}_label" aria-describedby="${app.app_id}_desc">
7272
<div class="app-container">
7373
<img src="${xdcget_export + "/" + app.icon_relname}" loading="lazy" alt="Icon of ${app.name} app" />
7474
<div class="metadata">

0 commit comments

Comments
 (0)