a11y: add titles to image actions
This commit is contained in:
1 parent
25d60a2acf
commit
3f1ca3797b
2 files changed
+10
No files matched your search
@@ -22,6 +22,7 @@
|
|||||||
import { backOut, elasticOut, expoOut } from 'svelte/easing'
|
import { backOut, elasticOut, expoOut } from 'svelte/easing'
|
||||||
import { fade, fly, scale } from 'svelte/transition'
|
import { fade, fly, scale } from 'svelte/transition'
|
||||||
import { focusTrap } from 'svelte-focus-trap'
|
import { focusTrap } from 'svelte-focus-trap'
|
||||||
|
import { t } from '$lib/translations'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The full-resolution image URL
|
* The full-resolution image URL
|
||||||
@@ -71,6 +72,7 @@
|
|||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="square-lg"
|
size="square-lg"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
|
title={$t('routes.profile.media.download')}
|
||||||
>
|
>
|
||||||
<Icon src={ArrowDownTray} size="20" micro />
|
<Icon src={ArrowDownTray} size="20" micro />
|
||||||
</Button>
|
</Button>
|
||||||
@@ -82,6 +84,7 @@
|
|||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="square-lg"
|
size="square-lg"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
|
title={$t('post.actions.more.share')}
|
||||||
>
|
>
|
||||||
<Icon src={Share} size="20" micro />
|
<Icon src={Share} size="20" micro />
|
||||||
</Button>
|
</Button>
|
||||||
@@ -92,6 +95,7 @@
|
|||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="square-lg"
|
size="square-lg"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
|
title={zoomed ? $t('post.image.zoomOut') : $t('post.image.zoomIn')}
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
src={zoomed ? MagnifyingGlassMinus : MagnifyingGlassPlus}
|
src={zoomed ? MagnifyingGlassMinus : MagnifyingGlassPlus}
|
||||||
@@ -104,6 +108,7 @@
|
|||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="square-lg"
|
size="square-lg"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
|
title={$t('post.image.close')}
|
||||||
>
|
>
|
||||||
<Icon src={XMark} size="20" micro slot="prefix" />
|
<Icon src={XMark} size="20" micro slot="prefix" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -490,6 +490,11 @@
|
|||||||
"removed": "Removed",
|
"removed": "Removed",
|
||||||
"deleted": "Deleted",
|
"deleted": "Deleted",
|
||||||
"saved": "Saved"
|
"saved": "Saved"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"zoomIn": "Zoom in",
|
||||||
|
"zoomOut": "Zoom out",
|
||||||
|
"close": "Close"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"comment": {
|
"comment": {
|
||||||
|
|||||||
Reference in new issue
Block a user