mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-12 18:43:47 +00:00
fix(*): Force modal to be able to close
This commit is contained in:
@@ -3,21 +3,19 @@
|
||||
export let heading = '';
|
||||
export let body = '';
|
||||
|
||||
function handleOverlayClick(event) {
|
||||
function handleSubmit() {
|
||||
showModal = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="modal-container">
|
||||
<div
|
||||
id="modal-overlay"
|
||||
on:click={handleOverlayClick}
|
||||
on:keydown={handleOverlayKeydown}
|
||||
aria-modal="true"
|
||||
>
|
||||
<div id="modal-overlay">
|
||||
<div class="modal">
|
||||
<h2>{heading}</h2>
|
||||
<p>{body}</p>
|
||||
<div class="button-container">
|
||||
<button on:click={handleSubmit}>OK</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user