-
Notifications
You must be signed in to change notification settings - Fork 273
[a11y][Checkbox]: Checkbox text is not read by VoiceOver when accessibleNameRef is provided #11257
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
I've prepared an example to illustrate that this is the expected behavior, as it works in the same way with native elements: JSBin Example Please also refer to the official WAI-ARIA specification for name calculation: https://www.w3.org/TR/wai-aria-1.2/#namecalculation In our case, I'm forwarding this issue to the responsible team to verify whether the checkbox is intended to have an associated label and to clarify the expected usage in such scenarios. Hello @SAP/ui5-webcomponents-topic-p, Could you please take a look when you have a moment? Best regards, |
To clarify the accessibility behavior: This is the expected behavior according to the WAI-ARIA 1.2 specification for name computation, as well as the checkbox specification. When accessibleNameRef is used (corresponding to aria-labelledby), it follows the standard naming precedence:
Regarding expected usage: Does this explanation answer your question, or is there anything else we can help clarify? Best regards, |
Hello, I'll go ahead and close the issue for now. Best regards, |
This issue has been closed. To reopen, just leave a comment! |
Bug Description
When
accessibleNameRef
is provided, thetext
ofCheckbox
is not read by VoiceOver. Only label is announced, andtext
is omitted.Code snippet:
Affected Component
No response
Expected Behaviour
Both label and checkbox text are announced by VoiceOver.
Isolated Example
https://sap.github.io/ui5-webcomponents/nightly/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG5cblxuXG5cblxuPGhlYWQ-XG4gICAgXG4gICAgPHN0eWxlPlxuICAgICAgKjpub3QoOmRlZmluZWQpIHtcbiAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgIH1cblxuICAgIGh0bWwge1xuICAgICAgZm9yY2VkLWNvbG9yLWFkanVzdDogbm9uZTtcbiAgICB9XG4gICAgPC9zdHls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dGlvbkdyb3VwLmpzXCI7XG5pbXBvcnQgXCJAdWk1L3dlYmNvbXBvbmVudHMtZmlvcmkvZGlzdC9TaWRlTmF2aWdhdGlvblN1Ykl0ZW0uanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1maW9yaS9kaXN0L1NpZGVOYXZpZ2F0aW9uR3JvdXAuanNcIjtcblxuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvaG9tZS5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvY2hhaW4tbGluay5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvZ3JvdXAuanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L2xvY2F0ZS1tZS5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzLWljb25zL2Rpc3QvY2FsZW5kYXIuanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L2hpc3RvcnkuanNcIjtcbmltcG9ydCBcIkB1aTUvd2ViY29tcG9uZW50cy1pY29ucy9kaXN0L2N1c3RvbWVyLmpzXCI7In0sIm1haW4uY3NzIjp7Im5hbWUiOiJtYWluLmNzcyIsImNvbnRlbnQiOiJkaXYge1xuXG59In19
Steps to Reproduce
Log Output, Stack Trace or Screenshots
Priority
None
UI5 Web Components Version
2.8.0
Browser
Chrome
Operating System
macOS
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: