Vuepic / vue-datepicker

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

Aria label for clearInput applied to wrong element #942

Closed alessandromontesanti closed 1 month ago

alessandromontesanti commented 1 month ago

Now that the X button is exposed to screenreaders, I've tried to set the aria label for the clearInput element (through the aria-labels prop) but I've noticed that such label is applied to the element containing the calendar icon, not the clear button, thus not being announced by VoiceOver on Mac/iOS. I've also noticed that the aria label for the calendarIcon seems to be useless, because is applied to the svg element, which has aria-hidden set to true.