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 heading = '';
|
||||||
export let body = '';
|
export let body = '';
|
||||||
|
|
||||||
function handleOverlayClick(event) {
|
function handleSubmit() {
|
||||||
showModal = false;
|
showModal = false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="modal-container">
|
<div class="modal-container">
|
||||||
<div
|
<div id="modal-overlay">
|
||||||
id="modal-overlay"
|
|
||||||
on:click={handleOverlayClick}
|
|
||||||
on:keydown={handleOverlayKeydown}
|
|
||||||
aria-modal="true"
|
|
||||||
>
|
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<h2>{heading}</h2>
|
<h2>{heading}</h2>
|
||||||
<p>{body}</p>
|
<p>{body}</p>
|
||||||
|
<div class="button-container">
|
||||||
|
<button on:click={handleSubmit}>OK</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user