mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(web, a11y): add labels! (#8354)
* feat(web, a11y): add labels! * fix: move required prop to the top of the list
This commit is contained in:
parent
6f677b4fae
commit
fcc3b81745
20 changed files with 63 additions and 26 deletions
|
|
@ -2,11 +2,11 @@
|
|||
import Icon from '$lib/components/elements/icon.svelte';
|
||||
|
||||
export let icon: string;
|
||||
export let title: string;
|
||||
export let backgroundColor = '';
|
||||
export let hoverColor = '#e2e7e9';
|
||||
export let padding = '3';
|
||||
export let size = '24';
|
||||
export let title = '';
|
||||
export let isOpacity = false;
|
||||
export let forceDark = false;
|
||||
export let hideMobile = false;
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
{hideMobile && 'hidden sm:flex'}"
|
||||
on:click
|
||||
>
|
||||
<Icon path={icon} {size} color={iconColor} />
|
||||
<Icon path={icon} {size} ariaLabel={title} color={iconColor} />
|
||||
<slot />
|
||||
</button>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue