mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 05:28:00 +02:00
Keyboard handlers, aria labels, locales cleanup
Added keyboard handlers for queue items Fixed and/or added missing aria labels Overlapping translations cleaned up + new ones added
This commit is contained in:
parent
b9b15e78af
commit
6586f782f2
9 changed files with 100 additions and 35 deletions
|
@ -1,12 +1,17 @@
|
|||
<script setup>
|
||||
defineProps(['ico']);
|
||||
defineEmits(['click']);
|
||||
|
||||
import { useI18n } from '@/stores/misc.js';
|
||||
const {t} = useI18n()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button
|
||||
:class="'bi clickable bi-' + (ico ? ico : 'play')"
|
||||
@click="$emit('click')">
|
||||
:class="'bi clickable bi-' + (ico ?? 'play')"
|
||||
@click="$emit('click')"
|
||||
:aria-label="ico ? t(`action.${ico}`) : 'play'"
|
||||
:title="ico ? t(`action.${ico}`) : 'play'">
|
||||
<slot name="menu"></slot>
|
||||
</button>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue