You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input: A11y Issue - Suggestion Items inside Input are not read properly by screen reader #5732
Switch to VPC mode -> press arrow keys to read through the options of the Search drop-down -> Observe each option is announced twice,
Both in forms and VPC modes, as we read through the Search drop-down options, the text alternative of icons in the options is not announced.
Incorrect state of "selected" is announced even before selecting the option
Expected Behavior
Each option should be read only once
Visually these icons are present to indicate that a user can search for a term in a specific scope. Hence, the same text alternative for the icons must also be conveyed to the screen reader users. eg: <Icon Alternative> <search term>
The selected state should be announced only after we press the ENTER key to select the option
Focus on the input box in the "Input with customizable SuggestionItem" section and input the letter 'b'
Use the arrow down key to read through the dropdown
You will hear "Bulgaria. List 3 of 8 items Bulgaria selected". That's to say the "Bulgaria" would be read twice, the "globe" icon before "Bulgaria" would not be read and the "selected" would also be spoken regardless of the fact that the user has not selected this item using the enter key.
changed the title [-]Input: A11y Issue - Suggestion Items [/-][+]Input: A11y Issue - Suggestion Items inside Input are not read properly by screen reader[/+]on Aug 26, 2022
Hi @SAP/ui5-webcomponents-topic-rl could you please take a look at the described issues.
The double item announcement issue is also reported in #5625
The icon accessibility issue that is described is caused from outside as the icon is a slot in our case. If its accessibility properties are set - the problem shouldn't exist.
The 'selected' speech output on item navigation seems to not be correct as the suggestion is not being selected in the context of the Input component. I also checked if there is such announcement in OpenUI5 and there isn't.
Hi @SAP/ui5-webcomponents-topic-rl could you please take a look at the described issues.
The double item announcement issue is also reported in #5625
The icon accessibility issue that is described is caused from outside as the icon is a slot in our case. If its accessibility properties are set - the problem shouldn't exist.
The 'selected' speech output on item navigation seems to not be correct as the suggestion is not being selected in the context of the Input component. I also checked if there is such announcement in OpenUI5 and there isn't.
Hi ndeshev,
Sorry to miss your feedback. But for the icon accessibility issue, SuggestionItems from ui5-webcomponents-react provide no prop for icon accessibility but the icon URI. So how can we set the accessibility properties for icons in the SuggestionItems like we use the Icon component directly?
For the second issue - this use case is not currently supported (announcement of icon alternative texts in suggestion items). @nikolay-kolarov Do we have such a case in UI5? Do we support icon in the suggestions, since I was not able to find an example for that?
For the third issue - this is actually expected. When navigating inside the list you are also changing the selected state of the list item. This is not only spoken by the SR software, but also visually indicated. For reference we follow https://www.w3.org/WAI/ARIA/apg/patterns/listbox/ where it is pointed that an option could be selected, when the focus goes on it.
I want to inform you that we are working on the issue with priority and we will discuss with accessibility expert and the developers the case with a suggestion item with an icon inside.
If you attach to one of the events of the input, for example suggestion-item-preview and call the announce method of the InvisibleMessage you can trigger an announcement of your own, which will be spoken in addition to the currently present announcement.
In future we plan to enable the possibility to add custom items (#5128) as suggestion items and you will be able to add icons inside, but since this will be a slot, again you will need to manually trigger an item announcement, since we could not reach anything inside the slot that you are passing, so again the InvisibleMessage will be needed.
@elenastoyanovaa
I have discussed #3 with Stefan and Oliver. Announcing "selected" state when the list item is just focused is incorrect. The list item can be considered as "selected" only after the user presses ENTER on it. Until then as we arrow down, the list options are only "focused". The state (blue highlight) indicates the focused state.
@yzy415 Could you please reopen this ticket for #3?
Activity
[-]Input: A11y Issue - Suggestion Items [/-][+]Input: A11y Issue - Suggestion Items inside Input are not read properly by screen reader[/+]ndeshev commentedon Sep 1, 2022
Hi @SAP/ui5-webcomponents-topic-rl could you please take a look at the described issues.
The double item announcement issue is also reported in #5625
The icon accessibility issue that is described is caused from outside as the icon is a slot in our case. If its accessibility properties are set - the problem shouldn't exist.
The 'selected' speech output on item navigation seems to not be correct as the suggestion is not being selected in the context of the Input component. I also checked if there is such announcement in OpenUI5 and there isn't.
yzy415 commentedon Sep 6, 2022
Hi ndeshev,
Sorry to miss your feedback. But for the icon accessibility issue, SuggestionItems from ui5-webcomponents-react provide no prop for icon accessibility but the icon URI. So how can we set the accessibility properties for icons in the SuggestionItems like we use the Icon component directly?
elenastoyanovaa commentedon Sep 8, 2022
Hello @yzy415 ,
I want to inform you that we are working on the issue with priority and we will discuss with accessibility expert and the developers the case with a suggestion item with an icon inside.
Kind Regards,
Elena
elenastoyanovaa commentedon Sep 8, 2022
Hello @yzy415 ,
We have analysed the second issue and currently we stick to the implementation of the StandardListItem where the icon is purely decorative.
Please check the following example here: https://sapui5.hana.ondemand.com/sdk/#/entity/sap.m.StandardListItem/sample/sap.m.sample.StandardListItemInfoStateInverted
In order to achieve the desired behavior you could use our feature InvisibleMessage. You can check it out in the Accessibility features section here: https://sap.github.io/ui5-webcomponents/main/playground/advanced/accessibility/
If you attach to one of the events of the input, for example suggestion-item-preview and call the announce method of the InvisibleMessage you can trigger an announcement of your own, which will be spoken in addition to the currently present announcement.
In future we plan to enable the possibility to add custom items (#5128) as suggestion items and you will be able to add icons inside, but since this will be a slot, again you will need to manually trigger an item announcement, since we could not reach anything inside the slot that you are passing, so again the InvisibleMessage will be needed.
Kind Regards,
Elena
anuvenkatesh1 commentedon Sep 15, 2022
@elenastoyanovaa
I have discussed #3 with Stefan and Oliver. Announcing "selected" state when the list item is just focused is incorrect. The list item can be considered as "selected" only after the user presses ENTER on it. Until then as we arrow down, the list options are only "focused". The state (blue highlight) indicates the focused state.
@yzy415 Could you please reopen this ticket for #3?