Skip to content

Commit

Permalink
Added aria-label to more components
Browse files Browse the repository at this point in the history
  • Loading branch information
amr3k authored Apr 18, 2024
1 parent cb5c3cd commit e0c5780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/Modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</script>

<div class="svelte-lightbox-main" class:fullscreen={imagePreset === 'fullscreen'} class:scroll={imagePreset === 'scroll'}
transition:fade={{ duration: transitionDuration }} on:click {...$$restProps}>
transition:fade={{ duration: transitionDuration }} aria-label="Modal" on:click {...$$restProps}>
<slot/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Modal/ModalCover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let transitionDuration: number
</script>

<div class="svelte-lightbox-overlay" on:click in:fade={{ duration: transitionDuration * 2 }} out:fade={{ duration: transitionDuration / 2 }} {...$$restProps}>
<div class="svelte-lightbox-overlay" aria-label="overlay" on:click in:fade={{ duration: transitionDuration * 2 }} out:fade={{ duration: transitionDuration / 2 }} {...$$restProps}>
<slot />
</div>

Expand Down

0 comments on commit e0c5780

Please sign in to comment.