Skip to content

Commit

Permalink
fix(ui5-list): removed _level property (#8089)
Browse files Browse the repository at this point in the history
Fixes: #8047

_level property is removed from ui5-li, since it is no longer used.
Also, import of 'Integer' is removed, since it is not used as well.
  • Loading branch information
yanaminkova authored and PetyaMarkovaBogdanova committed Jan 17, 2024
1 parent 12d1a88 commit 9e7044e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/main/src/ListItem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
import { getEventMark } from "@ui5/webcomponents-base/dist/MarkedEvents.js";
import { isSpace, isEnter, isDelete } from "@ui5/webcomponents-base/dist/Keys.js";
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
Expand Down Expand Up @@ -213,9 +212,6 @@ abstract class ListItem extends ListItemBase {
@property({ type: HasPopup, noAttribute: true })
ariaHaspopup?: `${HasPopup}`;

@property({ type: Integer })
_level?: number;

/**
* Used in UploadCollectionItem
* @private
Expand Down Expand Up @@ -489,7 +485,7 @@ abstract class ListItem extends ListItemBase {
return {
role: this.accessibleRole || this.role,
ariaExpanded: undefined,
ariaLevel: this._level || undefined,
ariaLevel: undefined,
ariaLabel: ListItem.i18nBundle.getText(ARIA_LABEL_LIST_ITEM_CHECKBOX),
ariaLabelRadioButton: ListItem.i18nBundle.getText(ARIA_LABEL_LIST_ITEM_RADIO_BUTTON),
ariaSelectedText: this.ariaSelectedText,
Expand Down

0 comments on commit 9e7044e

Please sign in to comment.