File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## ariaLabel
2
+
3
+ This value will be bound to the [ aria-label
4
+ HTML attribute] ( https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label )
5
+ for the search input. Defaults to ` Search for option ` .
6
+
7
+ ``` js
8
+ ariaLabel: {
9
+ type: String ,
10
+ default: ' Search for option'
11
+ },
12
+ ```
13
+
1
14
## appendToBody <Badge text =" v3.7.0+ " />
2
15
3
16
Append the dropdown element to the end of the body
Original file line number Diff line number Diff line change 12
12
role =" combobox"
13
13
:aria-expanded =" dropdownOpen.toString()"
14
14
:aria-owns =" `vs${uid}__listbox`"
15
- aria-label =" Search for option "
15
+ : aria-label =" ariaLabel "
16
16
v-click-outside =" clickOutside"
17
17
@mousedown =" toggleDropdown($event)"
18
18
>
@@ -246,6 +246,15 @@ export default {
246
246
default: false ,
247
247
},
248
248
249
+ /**
250
+ * Sets the value of the 'aria-label' for the search `<input>`.
251
+ * @type {String}
252
+ */
253
+ ariaLabel: {
254
+ type: String ,
255
+ default: ' Search for option' ,
256
+ },
257
+
249
258
/**
250
259
* Enable/disable filtering the options.
251
260
* @type {Boolean}
You can’t perform that action at this time.
0 commit comments