Skip to content

Commit

Permalink
Use semantically correct dialog tag
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Aug 21, 2024
1 parent 4871732 commit 9ada7a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/dialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

<div class="dialog" class:visible hidden={!visible}>
<div class="background" />
<div class="alert">
<dialog class="alert">
<h2>{title}</h2>
<p>{message}</p>
<div class="buttons">
<Button type="button" on:click={() => dispatch('ok')}>{t('ok')}</Button>
</div>
</div>
</dialog>
</div>

<style lang="scss">
Expand Down Expand Up @@ -53,6 +53,7 @@
flex-direction: column;
min-width: 240px;
padding: 1em 2em;
border: none;
border-radius: 1em;
opacity: 0;
background: var(--color-surface);
Expand Down

0 comments on commit 9ada7a8

Please sign in to comment.