Skip to content

Commit 039e522

Browse files
authored
✨ 252 muccounter accessibility (#258)
* 252: add aria-labels and tabindex to MucCounter * 252: fix format
1 parent 2fd55bd commit 039e522

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/Form/MucCounter.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,33 @@
44
v-on:click="clickedMinus"
55
variant="secondary"
66
:disabled="disableMinus"
7+
:aria-label="'Anzahl ' + label + ' reduzieren auf ' + (modelValue - 1)"
78
>
89
<template #default><muc-icon icon="minus" /></template>
910
</MucButton>
10-
<p>
11+
<p tabindex="0">
1112
<strong
1213
class="centered-text"
1314
style="color: var(--color-brand-main-blue)"
1415
>
16+
<span class="visually-hidden">
17+
Aktuell ausgewählte Anzahl für {{ label }} ist</span
18+
>
1519
{{ modelValue }}
1620
</strong>
1721
</p>
1822
<MucButton
1923
v-on:click="clickedPlus"
2024
variant="secondary"
2125
:disabled="disablePlus"
26+
:aria-label="'Anzahl ' + label + ' erhöhen auf ' + (modelValue + 1)"
2227
>
2328
<template #default><muc-icon icon="plus" /></template>
2429
</MucButton>
2530
<p v-if="link">
2631
<label class="centered-text">
2732
<muc-link
33+
tabindex="0"
2834
:label="label"
2935
:href="link"
3036
></muc-link>

0 commit comments

Comments
 (0)