Skip to content

Commit

Permalink
fix(ui5-li): Do not announce active list item type (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed May 5, 2020
1 parent b0917d5 commit ec14719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/main/src/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ class ListItem extends ListItemBase {
return this.type === ListItemType.Detail;
}

get typeActive() {
return this.type === ListItemType.Active;
}

get ariaSelected() {
if (this.modeMultiSelect) {
return this.selected;
Expand Down
4 changes: 3 additions & 1 deletion packages/main/src/StandardListItem.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
{{#if description}}
<span part="description" class="ui5-li-desc">{{description}}</span>
{{/if}}
<span class="ui5-hidden-text">{{type}}</span>
{{#unless typeActive}}
<span class="ui5-hidden-text">{{type}}</span>
{{/unless}}
</div>
{{#if info}}
<span part="info" class="ui5-li-info">{{info}}</span>
Expand Down

0 comments on commit ec14719

Please sign in to comment.