diff --git a/packages/main/src/ListItem.js b/packages/main/src/ListItem.js index f19352ae60cf..5e048ff4bc8a 100644 --- a/packages/main/src/ListItem.js +++ b/packages/main/src/ListItem.js @@ -56,6 +56,20 @@ const metadata = { type: Boolean, }, + /** + * Used to define the role of the list item. + * + * @private + * @type {String} + * @defaultvalue "option" + * @since 1.0.0-rc.9 + * + */ + role: { + type: String, + defaultValue: "option", + }, + _mode: { type: ListMode, defaultValue: ListMode.None, @@ -294,7 +308,7 @@ class ListItem extends ListItemBase { get _accInfo() { return { - role: "option", + role: this.role, ariaExpanded: undefined, ariaLevel: undefined, ariaLabel: this.i18nBundle.getText(ARIA_LABEL_LIST_ITEM_CHECKBOX),