ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

TimePicker-based components: Adopt latest screen reader specification

Open ghristanov opened this issue 5 years ago • 0 comments

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:

  • input element with type="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:

  • ul element
  • role="listbox"
  • aria-label="Hours"/"Minutes"/etc.. depending on the slider. Referencing the already existing label (#ui5-wheelslider-label) with aria-labelledby is also an option.

Slider item:

  • li element
  • role="option"
  • Indicate selection via aria-selected="true"/"false"

Feel free to let me know if you require any further information / assistance!

ghristanov avatar Mar 24 '21 16:03 ghristanov