Skip to content

[ui5-button]: Badge content is ignored when accessible-name is used #11350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
NakataCode opened this issue Apr 16, 2025 · 0 comments · May be fixed by #11396
Open
1 task done

[ui5-button]: Badge content is ignored when accessible-name is used #11350

NakataCode opened this issue Apr 16, 2025 · 0 comments · May be fixed by #11396
Assignees
Labels
ACC bug This issue is a bug in the code TOPIC B

Comments

@NakataCode
Copy link
Contributor

Bug Description

When using a ui5-button with a badge (via slot="badge"), screen readers correctly read the full visual content including the badge (e.g., “Emphasized Tag Warning 999+.”). However, when an accessible-name is set on the button, the screen reader only reads the value of the accessible-name, and the badge content is ignored.

Affected Component

ui5-button

Expected Behaviour

When accessible-name is used, it should still be possible to include the badge content in what the screen reader announces.

Isolated Example

https://sap.github.io/ui5-webcomponents/nightly/packages/main/test/pages/Button.html

Steps to Reproduce

1.Open the example and find a button with a badge
2.Set accessible-name attribute to the button
3.It does not announce the badge anymore
...

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

2.9.0

Browser

Chrome

Operating System

Mac

Additional Context

Organization

SAP

Declaration

  • I’m not disclosing any internal or sensitive information.
@NakataCode NakataCode added ACC bug This issue is a bug in the code TOPIC B labels Apr 16, 2025
@unazko unazko moved this from New Issues to In Progress in Maintenance - Topic B Apr 16, 2025
@unazko unazko linked a pull request Apr 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACC bug This issue is a bug in the code TOPIC B
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants