Skip to content

Commit

Permalink
a11y: critère 6.2 pour des boutons sans label
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Jun 25, 2024
1 parent 631345f commit 17b51e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/records/Table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<td class="selection" colspan="2">
<div class="fr-checkbox-group single-checkbox">
<input type="checkbox" id="radio-mass-edit" checked @click="selectedFeatureIds = []" />
<label class="fr-label" for="radio-mass-edit" />
<label class="fr-label" for="radio-mass-edit" aria-label="Désélectionner toutes les parcelles" />
</div>
</td>
<td colspan="3">
Expand All @@ -37,9 +37,9 @@
</tr>
<tr>
<th colspan="2">
<div class="fr-checkbox-group single-checkbox" v-if="hasFeatures">
<div class="fr-checkbox-group single-checkbox" v-if="hasFeatures && selectedFeatureIds.length === 0">
<input type="checkbox" id="radio-select-all" :checked="allSelected" @click="toggleAllSelected" />
<label class="fr-label" for="radio-select-all" :aria-label="allSelected ? 'Tout désélectionner' : 'Tout sélectionner'" />
<label class="fr-label" for="radio-select-all" aria-label="Sélectionner toutes les parcelles" />
</div>
</th>
<th class="labels" scope="col">
Expand Down

0 comments on commit 17b51e5

Please sign in to comment.