Skip to content

fix(ui5-list): suppress F2 aria description when no interactive items present#13489

Open
NakataCode wants to merge 2 commits intomainfrom
ui5-list-f2-aria-description
Open

fix(ui5-list): suppress F2 aria description when no interactive items present#13489
NakataCode wants to merge 2 commits intomainfrom
ui5-list-f2-aria-description

Conversation

@NakataCode
Copy link
Copy Markdown
Contributor

Problem

When the List has selectionMode="None" and contains only plain standard items, the screen reader incorrectly announces "To move to the content, press F2" via aria-description on the <ul> element.

This affects the Tokenizer in read-only mode, which sets selectionMode="None" on its internal List in the n-more popover, causing the misleading instruction to be announced even though there are no interactive elements to reach with F2.


Solution

Introduce a _hasInteractiveItems getter that gates the F2 instruction, returning true only when any of the following conditions are met:

  • selectionMode is Delete — the custom delete button slot may be tabbable
  • Any item has type="Detail" — the detail button is tabbable
  • Any item is a ListItemCustom — arbitrary tabbable slot content

Fixes: #13347

@NakataCode NakataCode requested a review from dobrinyonkov May 8, 2026 13:13
@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

ui5-webcomponents-bot commented May 8, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview May 8, 2026 13:15 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tokenizer]: Incorrect F2 instruction announced in read-only mode for tokenizer

2 participants