Accessibility: Screen Reader for single option p-selectButton reads incorrectly #5952
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Current behavior
When using a screen reader to navigate through a set of selectButton options with multiple set as false, the narrator reads each value as 'unchecked checkbox'. When a user clicks space, the narrator will read 'checked checkbox'. If a user clicks space again, the narrator value goes back to 'unchecked checkbox' despite the value still being selected.
Expected behavior
If the multiple field is set to false, pressing the space bar should not affect the narration, especially if there is no visual/functional change. I also believe that labeling this component as a checkbox can be confusing to a user.
Minimal reproduction of the problem with instructions
This change is visible in the primeng documentation examples (https://primefaces.org/primeng/#/selectbutton).
You will see that despite Visa still being select, the narrator will read 'unchecked checkbox'
What is the motivation / use case for changing the behavior?
A user relying on the screen reader for navigation will not be able to interact with this control properly
Please tell us about your environment:
Windows 10, Node
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: