Skip to content

Commit 4649caa

Browse files
committed
add aria-label on every button
1 parent eb48392 commit 4649caa

File tree

9 files changed

+11
-0
lines changed

9 files changed

+11
-0
lines changed

src/components/commons/ShareButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
class="btn btn-outline-secondary"
2828
id="shareButton"
2929
@click="copy"
30+
aria-label="Share button"
3031
>
3132
<div v-if="copied">
3233
<i class="bi bi-check2-circle"></i> {{ $t('copied') }}!

src/components/commons/SortBy.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
@click="isOpen = !isOpen"
6363
:title="$t('sortBy')"
6464
data-testid="Sorting taxons input form"
65+
aria-label="Button to open a dropdown to change the sorting paramaeters"
6566
>
6667
<i
6768
:class="orderBy === 'asc' ? 'bi bi-sort-up' : 'bi bi-sort-down'"

src/components/commons/TaxonClassFilter.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<BButton
2626
pill
2727
variant="outline-primary"
28+
:aria-label="`Button to select ${value} class of taxon`"
2829
:pressed="class_ == value"
2930
@click="updateClass(value)"
3031
data-testid="Animalia button parameter"
@@ -42,6 +43,7 @@
4243
:pressed="class_ == value"
4344
@click="updateClass(value)"
4445
data-testid="Plantae button parameter"
46+
:aria-label="`Button to select ${value} class of taxon`"
4547
>{{ $t(`taxonsClass.Plantae.${value}`) }}</BButton
4648
>
4749
</div>

src/components/core/HTMLBuilder.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<button
5353
class="btn btn-outline-secondary"
5454
@click="copy"
55+
aria-label="Button to get the iframe code"
5556
data-testid="embed tag copy button"
5657
>
5758
<div v-if="copied">

src/components/core/Parameters.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
<BButton
298298
variant="danger"
299299
data-testid="Refresh parameters button"
300+
aria-label="Button to refresh the parameter form"
300301
@click="ParameterStore.clearParameters(route, router)"
301302
>
302303
<i class="bi bi-arrow-clockwise"></i>

src/components/core/filters/SourceFilter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
:variant="props.variant"
5555
size="md"
5656
data-testid="button to open the source change modal"
57+
aria-label="button to open the source change modal"
5758
class="col-12 mb-3"
5859
><i class="fa fa-leaf"></i> {{ $t('source.modify') }} ({{
5960
sourceName

src/components/core/map/PlaceSearchForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
@mousedown.prevent
156156
type="button"
157157
:title="placeholder"
158+
aria-label="Button to toggle the search place form"
158159
>
159160
<i class="bi bi-search"></i>
160161
</button>
@@ -177,6 +178,7 @@
177178
@click="closeForm"
178179
@mousedown.prevent
179180
type="button"
181+
aria-label="button to close the search place form"
180182
>
181183
<i class="bi bi-x-lg"></i>
182184
</button>

src/components/core/taxonList/TaxonListFooter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
src="https://geonature.fr/documents/autres/BAM/BAM-logo.png"
3434
height="30px"
3535
class="me-1"
36+
alt="BAM logo"
3637
/>
3738
</a>
3839
<strong

src/components/core/taxonList/TaxonListModeSelection.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
: $t('mode.galleryMode')
2525
"
2626
data-testid="Mode toggle button"
27+
aria-label="Button to change the display mode between gallery and detailed list"
2728
>
2829
<i
2930
:key="mode"

0 commit comments

Comments
 (0)