Skip to content

Commit b53bf0b

Browse files
committed
fix(yeti): Make aria-label conditional to avoid accessible-name mismatch
1 parent 6915387 commit b53bf0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/yeti/EditModeButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="button edit-mode-button ol-control-edit-mode"
44
:class="{ 'is-dark': editMode, 'is-small': isSmall }"
55
:title="$gettext('Enable drawing and editing features on map')"
6-
:aria-label="$gettext('Enable drawing and editing features on map')"
6+
:aria-label="iconOnly ? $gettext('Enable drawing and editing features on map') : null"
77
>
88
<input-checkbox @input="onEditMode" :value="editMode" :disabled="validSimplifyTolerance">
99
<span v-if="!iconOnly" v-translate> Edit mode </span>

0 commit comments

Comments
 (0)