Open AlexYanSap opened 4 days ago
Hi @AlexYanSap,
Can we ask the customer to give more details i.e. indicate more precisely their concern.
The spec https://www.w3.org/TR/wai-aria/#widget_roles does not list any role named "collapsed".
aria-expanded
attribute: https://www.w3.org/TR/wai-aria/#aria-expanded The ui5-select currently updates that attribute whenever the dropdown in shown/hidden, so the SR announces the new statebutton
only if the select is a button that opens a dropdown, otherwise (as is the case of ui5-select) it should be combobox
/listbox
. Currently the ui5-select has role combobox
https://www.w3.org/TR/wai-aria/#combobox
Bug Description
It's an incident from the customer that the collapsed select should have the role of the collapsed as recommended by the https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.
I noticed the SR did announce the collapsed state even though we have not set the role as recommended.
Affected Component
Select
Expected Behaviour
Ensure role should be button collapsed.![image](https://github.com/SAP/ui5-webcomponents/assets/169127980/998b1dde-ed16-4bc9-95e7-a5358acc9afe)
Isolated Example
https://sap.github.io/ui5-webcomponents/components/Select/
Steps to Reproduce
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
1.24.1
Browser
Edge
Operating System
No response
Additional Context
I'm from SFSF
Organization
SAP SF
Declaration