Skip to content

Commit

Permalink
fix: (CXSPA-8035) NavigationUiComponent list-count not read out.
Browse files Browse the repository at this point in the history
  * add condition to change lists role attribute to presentation if there is only one item to show to avoid narrating a list with one item

  * introduced a new translation

  * pass an ariaLabel attribute to cx-generic-link to get the title, list size and current position narrated by JAWS.

  * closes https://jira.tools.sap/browse/CXSPA-8035
  • Loading branch information
StanislavSukhanov committed Oct 8, 2024
1 parent 860ea93 commit 1801c2e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<nav [attr.aria-label]="navAriaLabel">
<ul [attr.role]="flyout && (node?.children?.length ?? 0) > 1 ? 'list' : 'presentation'">
<ul
[attr.role]="
flyout && (node?.children?.length ?? 0) > 1 ? 'list' : 'presentation'
"
>
<li
*ngIf="flyout && (node?.children?.length ?? 0) > 1"
class="back is-open"
Expand Down

0 comments on commit 1801c2e

Please sign in to comment.