File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
src/components/NcColorPicker Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ msgstr ""
26
26
msgid "Avatar of {displayName}, {status}"
27
27
msgstr ""
28
28
29
+ msgid "Back"
30
+ msgstr ""
31
+
29
32
msgid "Cancel changes"
30
33
msgstr ""
31
34
@@ -92,6 +95,9 @@ msgstr ""
92
95
msgid "More items …"
93
96
msgstr ""
94
97
98
+ msgid "More options"
99
+ msgstr ""
100
+
95
101
msgid "Next"
96
102
msgstr ""
97
103
Original file line number Diff line number Diff line change @@ -188,13 +188,15 @@ export default {
188
188
<div class =" color-picker__navigation" >
189
189
<NcButton v-if =" advanced"
190
190
type =" tertiary"
191
+ :aria-label =" ariaBack"
191
192
@click =" handleBack" >
192
193
<template #icon >
193
194
<ArrowLeft :size =" 20" />
194
195
</template >
195
196
</NcButton >
196
197
<NcButton v-if =" !advanced"
197
198
type =" tertiary"
199
+ :aria-label =" ariaMore"
198
200
@click =" handleMoreSettings" >
199
201
<template #icon >
200
202
<DotsHorizontal :size =" 20" />
@@ -213,7 +215,7 @@ export default {
213
215
<script >
214
216
import NcButton from ' ../NcButton/index.js'
215
217
import NcPopover from ' ../NcPopover/index.js'
216
- import l10n from ' ../../mixins /l10n.js'
218
+ import { t } from ' ../../l10n.js'
217
219
import GenColors from ' ../../utils/GenColors.js'
218
220
219
221
import ArrowLeft from ' vue-material-design-icons/ArrowLeft.vue'
@@ -239,8 +241,6 @@ export default {
239
241
NcPopover,
240
242
},
241
243
242
- mixins: [l10n],
243
-
244
244
props: {
245
245
/**
246
246
* A HEX color that represents the initial value of the picker
@@ -284,6 +284,8 @@ export default {
284
284
return {
285
285
currentColor: this .value ,
286
286
advanced: false ,
287
+ ariaBack: t (' Back' ),
288
+ ariaMore: t (' More options' ),
287
289
}
288
290
},
289
291
@@ -294,6 +296,8 @@ export default {
294
296
},
295
297
296
298
methods: {
299
+ t,
300
+
297
301
/**
298
302
* Submit a picked colour and close picker
299
303
*/
You can’t perform that action at this time.
0 commit comments