Skip to content

fix(ui5-list): suppress F2 aria description for custom items without tabbables - #13865

Merged
kgogov merged 1 commit into
mainfrom
fix/list-f2-aria-custom-no-tabbables
Jul 30, 2026
Merged

kgogov merged 1 commit into
mainfrom
fix/list-f2-aria-custom-no-tabbables

Conversation

@kgogov

@kgogov kgogov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Previously the "To move to the content, press F2" hint was announced for every ui5-li-custom, on the assumption that custom items may host arbitrary tabbable slot content. In the very common case where ui5-li-custom is used purely for visual richness (icon + description + additional text), the hint was misleading - F2 has nowhere to go, so pressing it does nothing.

Replace the type-based check in _hasInteractiveItems with a behavioural call to _hasFocusableElements(), so the announcement matches what F2 actually does.

Related to: #13489
Fixes: #13713

…tabbables

Previously the "To move to the content, press F2" hint was announced
for every ui5-li-custom, on the assumption that custom items may host
arbitrary tabbable slot content. In the very common case where
ui5-li-custom is used purely for visual richness (icon + description +
additional text), the hint was misleading - F2 has nowhere to go, so
pressing it does nothing.

Replace the type-based check in _hasInteractiveItems with a behavioural
call to _hasFocusableElements(), so the announcement matches what F2
actually does.

Related to: #13489
Fixes: #13713
@kgogov
kgogov temporarily deployed to netlify-preview July 24, 2026 12:32 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@kgogov

kgogov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Quick before/after for reviewers 👀

Same playground fragment (customer's exact repro from #13713), rendered against main vs. this PR:

How to inspect: open DevTools → find ui5-list → look at the inner <ul class="ui5-list-ul"> inside its shadow root.

@kgogov
kgogov merged commit 1b7be9b into main Jul 30, 2026
26 of 29 checks passed
@kgogov
kgogov deleted the fix/list-f2-aria-custom-no-tabbables branch July 30, 2026 12:32
@kgogov
kgogov temporarily deployed to netlify-preview July 30, 2026 12:32 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🧹 Preview deployment cleaned up: https://pr-13865--ui5-webcomponents.netlify.app

@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🎉 This PR is included in version v2.26.0-rc.0 🎉

The release is available on v2.26.0-rc.0

Your semantic-release bot 📦🚀

@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🎉 This PR is included in version v2.26.0 🎉

The release is available on v2.26.0

Your semantic-release bot 📦🚀

This branch was previously deployed

1 inactive deployment
netlify-preview — ef1eaa46 Deployed Jul 30, 2026 by kgogov via cleanup-preview #579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants