wc-datepicker icon indicating copy to clipboard operation
wc-datepicker copied to clipboard

feat: improve a11y

Open remischwartz opened this issue 8 months ago • 2 comments

Closes #25 Covers the following:

  • Add an aria-label attribute to the th elements. The abbr attribute is not announced by all screen readers.
  • Only change the value of the hidden span in wc-datepicker__header when the selected value changes (currently, it changes when users navigate through the dates with the keyboard).
  • In range mode, change the value of the hidden span in wc-datepicker__header to express the selected range (e.g., “June 21, 2024 to June 25, 2024”).
  • Add a title attribute to the month and year selection fields (same value as the aria-label).

remischwartz avatar Jun 25 '24 08:06 remischwartz