Skip to content

Commit bf14cc5

Browse files
committed
Use aria-label to improve component accessibility
1 parent 0ce4921 commit bf14cc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Select.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271

272272
<span class="selected-tag" v-for="option in valueAsArray" v-bind:key="option.index">
273273
{{ getOptionLabel(option) }}
274-
<button v-if="multiple" @click="deselect(option)" type="button" class="close">
274+
<button v-if="multiple" @click="deselect(option)" type="button" class="close" aria-label="Remove option">
275275
<span aria-hidden="true">&times;</span>
276276
</button>
277277
</span>
@@ -292,6 +292,7 @@
292292
:readonly="!searchable"
293293
:style="{ width: isValueEmpty ? '100%' : 'auto' }"
294294
:id="inputId"
295+
aria-label="Search for option"
295296
>
296297

297298
<i v-if="!noDrop" ref="openIndicator" role="presentation" class="open-indicator"></i>

0 commit comments

Comments
 (0)