Skip to content

fix(ui5-li-custom, ui5-tree-item-custom): add accessibleName property for stable accessible names - #13780

Merged
NakataCode merged 2 commits into
mainfrom
li-custom-accessible-name
Jul 16, 2026
Merged

fix(ui5-li-custom, ui5-tree-item-custom): add accessibleName property for stable accessible names#13780
NakataCode merged 2 commits into
mainfrom
li-custom-accessible-name

Conversation

@NakataCode

@NakataCode NakataCode commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Problem:

  • Before this change, the accessible name of ui5-li-custom items was only populated
    while the item was focused, causing aria-labelledby to be empty for non-focused items.

Solution:

  • Adds an accessibleName property to ui5-li-custom and TreeItemBase (used by
    ui5-tree-item-custom). When set, it bypasses the focus-based invisible text mechanism and
    provides a stable, always-present accessible name regardless of focus state.

Fixes: #13478

@NakataCode
NakataCode temporarily deployed to netlify-preview July 3, 2026 09:59 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

Comment thread packages/main/src/ListItemCustom.ts Outdated
@NakataCode
NakataCode temporarily deployed to netlify-preview July 7, 2026 10:12 — with GitHub Actions Inactive
@NakataCode
NakataCode merged commit ad0c2a8 into main Jul 16, 2026
34 of 37 checks passed
@NakataCode
NakataCode deleted the li-custom-accessible-name branch July 16, 2026 13:50
@NakataCode
NakataCode temporarily deployed to netlify-preview July 16, 2026 13:50 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

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

@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🎉 This PR is included in version v2.25.0 🎉

The release is available on v2.25.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility][Regression][ui5-li-custom] aria-labelledby empty for non-selected ui5-li-custom items in 2.21.1

3 participants