Prerequisites
Affected component
Summary
When configuring the to be readonly the screen reader detects this as input field resulting in incorrect instructions read out by the screen reader.
Version
@simpl/element-ng: 48.10.0
Steps to reproduce
- Configure the select input in a context that is able to either switch edit modes or is readonly
- check the role attribute of the element
- (optional) start a screen reader (e.g. JAWS) and let it read out the element attributes
Code reproduction example
https://github.com/siemens/element/blob/main/projects/element-ng/select/select-input/si-select-input.component.ts#L39
What is the current bug behavior
The screen reader detects combo boxes that are marked as read only as input fields. Therefore it reads out 'edit' causing confusion for the user.
What is the expected correct behavior
Read only combo boxes should still have the same role. When starting a screen reader it should read out the correct role and state of the element (e.g. combobox read only) as well as the instructions to that element (this should already be default behaviour for the role=combobox and does not need any adaptations)