Skip to content

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

Open
NakataCode wants to merge 1 commit into
mainfrom
li-custom-accessible-name
Open

fix(ui5-li-custom, ui5-tree-item-custom): add accessibleName property for stable accessible names#13780
NakataCode wants to merge 1 commit 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

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.

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

1 participant