We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6dfec commit 01a1fb0Copy full SHA for 01a1fb0
packages/main/src/ListItem.js
@@ -56,6 +56,20 @@ const metadata = {
56
type: Boolean,
57
},
58
59
+ /**
60
+ * Used to define the role of the list item.
61
+ *
62
+ * @private
63
+ * @type {String}
64
+ * @defaultvalue "option"
65
+ * @since 1.0.0-rc.9
66
67
+ */
68
+ role: {
69
+ type: String,
70
+ defaultValue: "option",
71
+ },
72
+
73
_mode: {
74
type: ListMode,
75
defaultValue: ListMode.None,
@@ -294,7 +308,7 @@ class ListItem extends ListItemBase {
294
308
295
309
get _accInfo() {
296
310
return {
297
- role: "option",
311
+ role: this.role,
298
312
ariaExpanded: undefined,
299
313
ariaLevel: undefined,
300
314
ariaLabel: this.i18nBundle.getText(ARIA_LABEL_LIST_ITEM_CHECKBOX),
0 commit comments