Skip to content

High performance self-hosted photo and video management solution.

fix(web): add labels to memory lane buttons (#16664)

Lukas097749d87280
diff --git a/web/src/lib/components/photos-page/memory-lane.svelte b/web/src/lib/components/photos-page/memory-lane.svelte
index 4667af1c6d..77c556834e 100644
--- a/web/src/lib/components/photos-page/memory-lane.svelte
+++ b/web/src/lib/components/photos-page/memory-lane.svelte
@@ -50,9 +50,11 @@
<button
type="button"
class="rounded-full border border-gray-500 bg-gray-100 p-2 text-gray-500 opacity-50 hover:opacity-100"
+ title={$t('previous')}
+ aria-label={$t('previous')}
onclick={scrollLeft}
>
- <Icon path={mdiChevronLeft} size="36" /></button
+ <Icon path={mdiChevronLeft} size="36" ariaLabel={$t('previous')} /></button
>
</div>
{/if}
@@ -61,9 +63,11 @@
<button
type="button"
class="rounded-full border border-gray-500 bg-gray-100 p-2 text-gray-500 opacity-50 hover:opacity-100"
+ title={$t('next')}
+ aria-label={$t('next')}
onclick={scrollRight}
>
- <Icon path={mdiChevronRight} size="36" /></button
+ <Icon path={mdiChevronRight} size="36" ariaLabel={$t('next')} /></button
>
</div>
{/if}