Skip to content

Commit ec14719

Browse files
authored
fix(ui5-li): Do not announce active list item type (#1575)
1 parent b0917d5 commit ec14719

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/main/src/ListItem.js

+4
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ class ListItem extends ListItemBase {
267267
return this.type === ListItemType.Detail;
268268
}
269269

270+
get typeActive() {
271+
return this.type === ListItemType.Active;
272+
}
273+
270274
get ariaSelected() {
271275
if (this.modeMultiSelect) {
272276
return this.selected;

packages/main/src/StandardListItem.hbs

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
{{#if description}}
99
<span part="description" class="ui5-li-desc">{{description}}</span>
1010
{{/if}}
11-
<span class="ui5-hidden-text">{{type}}</span>
11+
{{#unless typeActive}}
12+
<span class="ui5-hidden-text">{{type}}</span>
13+
{{/unless}}
1214
</div>
1315
{{#if info}}
1416
<span part="info" class="ui5-li-info">{{info}}</span>

0 commit comments

Comments
 (0)