Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.46k stars 145 forks source link

Accessibility violation | aria-label attribute into a generic role #907

Closed thomas-siozos closed 2 months ago

thomas-siozos commented 3 months ago

Describe the bug The input element with data-test="dp-input" has an "aria-label" attribute (aria-label="Datepicker input") which is not allowed on a generic role. That leads to an accessibility violation.

To Reproduce Steps to reproduce the behavior:

  1. Go to the date picker.
  2. Run an a11y tool in your browser, I did it with this one.

Screenshots You can run the test even in the examples in the documentation. image image

Desktop & mobile (please complete the following information):