From 41609a32eb5fa2709546bc7d5339a466b05c77cc Mon Sep 17 00:00:00 2001 From: Vladislav Tasev Date: Tue, 5 May 2020 09:45:12 +0300 Subject: [PATCH 1/2] fix(ui5-li): Do not announce active list item type --- packages/main/src/ListItem.js | 4 ++++ packages/main/src/StandardListItem.hbs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/main/src/ListItem.js b/packages/main/src/ListItem.js index ecd1b871d947..ab545ca145ea 100644 --- a/packages/main/src/ListItem.js +++ b/packages/main/src/ListItem.js @@ -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; diff --git a/packages/main/src/StandardListItem.hbs b/packages/main/src/StandardListItem.hbs index 8d1e64ed68e9..c4b040d89406 100644 --- a/packages/main/src/StandardListItem.hbs +++ b/packages/main/src/StandardListItem.hbs @@ -8,7 +8,9 @@ {{#if description}} {{description}} {{/if}} - {{type}} + {{#unless typeActive}} + {{type}} + {{/unless}} {{#if info}} {{info}} From dcf09a2bebb397cf1461d10592bb6e1bd9a32551 Mon Sep 17 00:00:00 2001 From: Vladislav Tasev Date: Tue, 5 May 2020 09:48:23 +0300 Subject: [PATCH 2/2] fix whitespace --- packages/main/src/StandardListItem.hbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/main/src/StandardListItem.hbs b/packages/main/src/StandardListItem.hbs index c4b040d89406..f9b1c9d588c8 100644 --- a/packages/main/src/StandardListItem.hbs +++ b/packages/main/src/StandardListItem.hbs @@ -8,9 +8,9 @@ {{#if description}} {{description}} {{/if}} - {{#unless typeActive}} - {{type}} - {{/unless}} + {{#unless typeActive}} + {{type}} + {{/unless}} {{#if info}} {{info}}