Skip to content

Commit

Permalink
✨ 252 muccounter accessibility (#258)
Browse files Browse the repository at this point in the history
* 252: add aria-labels and tabindex to MucCounter

* 252: fix format
  • Loading branch information
lehju authored Oct 8, 2024
1 parent 2fd55bd commit 039e522
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Form/MucCounter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,33 @@
v-on:click="clickedMinus"
variant="secondary"
:disabled="disableMinus"
:aria-label="'Anzahl ' + label + ' reduzieren auf ' + (modelValue - 1)"
>
<template #default><muc-icon icon="minus" /></template>
</MucButton>
<p>
<p tabindex="0">
<strong
class="centered-text"
style="color: var(--color-brand-main-blue)"
>
<span class="visually-hidden">
Aktuell ausgewählte Anzahl für {{ label }} ist</span
>
{{ modelValue }}
</strong>
</p>
<MucButton
v-on:click="clickedPlus"
variant="secondary"
:disabled="disablePlus"
:aria-label="'Anzahl ' + label + ' erhöhen auf ' + (modelValue + 1)"
>
<template #default><muc-icon icon="plus" /></template>
</MucButton>
<p v-if="link">
<label class="centered-text">
<muc-link
tabindex="0"
:label="label"
:href="link"
></muc-link>
Expand Down

0 comments on commit 039e522

Please sign in to comment.