Skip to content

Commit e44dccc

Browse files
committed
fix: add aria-label to zoom buttons in SignatureStamp
Add aria-label properties to zoom in/out buttons to comply with @nextcloud/vue requirements and eliminate console warnings. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 06901d6 commit e44dccc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/views/Settings/SignatureStamp.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,14 @@
214214
type="file"
215215
@change="onChangeBackground">
216216
<div v-if="displayPreview" class="settings-section__zoom">
217-
<NcButton @click="changeZoomLevel(-10)">
217+
<NcButton :aria-label="t('libresign', 'Decrease zoom level')"
218+
@click="changeZoomLevel(-10)">
218219
<template #icon>
219220
<MagnifyMinusOutline :size="20" />
220221
</template>
221222
</NcButton>
222-
<NcButton @click="changeZoomLevel(+10)">
223+
<NcButton :aria-label="t('libresign', 'Increase zoom level')"
224+
@click="changeZoomLevel(+10)">
223225
<template #icon>
224226
<MagnifyPlusOutline :size="20" />
225227
</template>

0 commit comments

Comments
 (0)