add screen reader mode

This commit is contained in:
Pete Matsyburka
2026-04-17 14:49:14 +03:00
parent ee65a5693c
commit 7cdf263da1
23 changed files with 834 additions and 59 deletions
@@ -69,13 +69,11 @@
:class="{ 'hidden sm:inline': modelValue || computedPreviousValue }"
:data-tip="t('take_photo')"
>
<label
role="button"
tabindex="0"
<button
type="button"
:aria-label="t('take_photo')"
class="btn btn-outline btn-sm font-medium inline-flex flex-nowrap upload-image-button"
@keydown.enter.prevent="$el.querySelector('input')?.click()"
@keydown.space.prevent="$el.querySelector('input')?.click()"
@click="$refs.takePhotoInput.click()"
>
<IconCamera
:width="16"
@@ -83,6 +81,7 @@
/>
<input
:key="uploadImageInputKey"
ref="takePhotoInput"
type="file"
hidden
accept="image/*"
@@ -91,7 +90,7 @@
<span class="hidden sm:inline">
{{ t('upload') }}
</span>
</label>
</button>
</span>
<button
v-if="modelValue || computedPreviousValue"