ui5-webcomponents
ui5-webcomponents copied to clipboard
TimePicker-based components: Adopt latest screen reader specification
Is your feature request related to a problem? Please describe. At the moment any component that extends TimePickerBase (ui5-time-picker and ui5-duration-picker) doesn't have appropriate ARIA support. To fix this, we need to enhance not only their input part, but their sliders as well.
Describe the solution you'd like Input - needs to adopt the ARIA 1.2 combobox pattern, which is recommended by the ARIA group:
inputelement withtype="text"role="combobox"aria-haspopup="dialog"aria-controls="PICKER_ID"aria-expanded="true"/"false"aria-autocomplete="none"aria-roledescription="Time Input"(for ui5-time-picker) /"Duration Input"(for ui5-duration-picker)
Sliders:
ulelementrole="listbox"aria-label="Hours"/"Minutes"/etc.. depending on the slider. Referencing the already existing label (#ui5-wheelslider-label) witharia-labelledbyis also an option.
Slider item:
lielementrole="option"- Indicate selection via
aria-selected="true"/"false"
Feel free to let me know if you require any further information / assistance!