Skip to content

Commit 71e3c30

Browse files
author
Robin Métral
committed
Pin micromodal to 8 and close on overlay click
See micromodal/Micromodal#490 for context.
1 parent 1e27d71 commit 71e3c30

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
},
3636
"type": "module",
3737
"dependencies": {
38-
"micromodal": "^0.4.10"
38+
"micromodal": "0.4.8"
3939
}
4040
}

src/lib/Modal.svelte

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@
5555
</script>
5656

5757
<div class="mm-modal" {id} aria-hidden="true">
58-
<div class="mm-overlay" tabindex="-1" style={overlayStyles || undefined}>
58+
<div
59+
class="mm-overlay"
60+
tabindex="-1"
61+
style={overlayStyles || undefined}
62+
data-micromodal-close
63+
>
5964
<div
6065
class="mm-container"
6166
role="dialog"

0 commit comments

Comments
 (0)