-
Notifications
You must be signed in to change notification settings - Fork 276
[list]: Screen reader announcement issue for additionalText and lack of announcement for selected record #10932
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
Comments
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository. |
Hello @SAP/ui5-webcomponents-topic-p, can you check this issue? |
Hi @wilson-xu-sap, thanks for reporting this. we need a few more details to help you:
Note: If you set the <ui5-li additional-text="1">Item 1</ui5-li>
<!-- screen reader ouput = Item 1 1 -->
<ui5-li accessible-name="My custom announcement" additional-text="1">Item 1</ui5-li>
<!-- screen reader ouput = My custom announcement --> Would that work for your use case?
Let us know more when you can. Regards, |
Hi @dobrinyonkov I cannot remember this ticket clearly. I think now |
Hi @wilson-xu-sap, the standard way to do that in HTML is to set an accessible name, either via aria-label or aria-labelledby. <ui5-li accessible-name="Item 1" additional-text="some additional text that will no longer be read">Item 1</ui5-li>
<!-- screen reader output = Item 1 --> Keep in mind that doing this can leave visually impaired users at a disadvantage. They won’t hear the additional text read out by screen readers, even though it's shown visually. If that extra information is important, consider including it in the accessible name, or rethinking how the content is structured. The goal is to give all users the same understanding, regardless of how they access the content. Let me know if you have more questions. Regards, |
This issue has been closed. To reopen, just leave a comment! |
Describe the bug
additionalText
should not join with text directly sometimes.selected
is announced.Isolated Example
https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/data-display-list--docs
Reproduction steps
...
Expected Behaviour
Screenshots or Videos
No response
UI5 Web Components for React Version
2.7
UI5 Web Components Version
2.7
Browser
Edge
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: