Client - add missing labels

This commit is contained in:
Sam
2023-07-13 13:26:38 +02:00
parent 3f672b5e90
commit d7a9aae45e
6 changed files with 20 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<template>
<div class="dropdown-wrapper">
<button
:aria-label="buttonLabel"
:aria-expanded="isOpen"
class="dropdown-selector transparent"
@click="toggleDropdown"
@ -32,6 +33,7 @@
interface Props {
options: TDropdownOptions
selected: string
buttonLabel: string
}
const props = defineProps<Props>()

View File

@ -82,6 +82,7 @@
:options="availableLanguages"
:selected="language"
@selected="updateLanguage"
:buttonLabel="$t('user.REGISTER')"
>
<i class="fa fa-language"></i>
</Dropdown>

View File

@ -30,6 +30,7 @@
params: { workoutId: workoutObject.workoutId },
})
"
:aria-label="$t(`workouts.EDIT_WORKOUT`)"
>
<i class="fa fa-edit" aria-hidden="true" />
</button>
@ -37,6 +38,7 @@
v-if="workoutObject.with_gpx"
class="transparent icon-button"
@click.prevent="downloadGpx(workoutObject.workoutId)"
:aria-label="$t(`workouts.DOWNLOAD_WORKOUT`)"
>
<i class="fa fa-download" aria-hidden="true" />
</button>
@ -44,6 +46,7 @@
id="delete-workout-button"
class="transparent icon-button"
@click="displayDeleteModal"
:aria-label="$t(`workouts.DELETE_WORKOUT`)"
>
<i class="fa fa-trash" aria-hidden="true" />
</button>

View File

@ -23,6 +23,7 @@
class="map-control"
tabindex="0"
role="button"
:aria-label="$t('workouts.RESET_ZOOM')"
@click="resetZoom"
>
<i class="fa fa-refresh" aria-hidden="true" />
@ -32,6 +33,9 @@
class="map-control"
tabindex="0"
role="button"
:aria-label="
$t(`workouts.${isFullscreen ? 'EXIT' : 'VIEW'}}_FULLSCREEN`)
"
@click="toggleFullscreen"
>
<i