Vuepic / vue-datepicker

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

Possibility to handle focus from outside #822

Closed ihardyslide closed 3 months ago

ihardyslide commented 5 months ago

Is your feature request related to a problem? Please describe. Hi, I already opened an A11y issue ticket for this library before and I was really impressed by the speed you delivered a fix. Thank you very much again for this.

Unfortunately, I need to bug you again with some accessibility issue. We have tried to adapt the Datepicker from outside, to align it as much as possible with the W3C suggestion regarding datepickers. We came across an issue, which we currently are not able to solve without forking the library. That's why I first want to ask, if it is maybe an improvement for everybody and therefore can go into your original library.

W3C suggests following points, which we could not implement without a fork:

I was only able to visually shift the focus via javascript, but could not actually set the index of the focus inside the datepicker. That means e.g., after pressing END key, the focus visually moves to the last day of the current week, but as soon as I press some arrow-key, let's say RIGHT-ARROW for this example, the focus will jump back to the day I was before pressing END and then go to the next day.

Describe the solution you'd like I see two possible solutions for this: 1) You try to implement the W3C suggestions into the datepicker by default 2) You implement some feature (prop or something?) which provides a possibility to modify the current focus from outside of the element.

Describe alternatives you've considered I will have to fork the library then I guess, I did not find any other solution yet.

Additional context 2024-04-10 14_08_05-Debian 11 Fresh  wird ausgeführt  - Oracle VM VirtualBox

Pressing END key 2024-04-10 14_08_20-Debian 11 Fresh  wird ausgeführt  - Oracle VM VirtualBox

Pressing RIGHT-ARROW 2024-04-10 14_08_39-Debian 11 Fresh  wird ausgeführt  - Oracle VM VirtualBox

ihardyslide commented 4 months ago

Hi,

thanks for the update. Unfortunately, it does not seem to work properly for me.

I have found following points which I would consider as a11y issue:

What do you think about this? Here you can see a video of mentioned points:

https://github.com/Vuepic/vue-datepicker/assets/1192287/3cea2c0d-e6cd-4a23-9227-0f6915dd8b7d

Thanks & BR

ihardyslide commented 3 months ago

Hi,

any update on this?

Thx & BR

Jasenkoo commented 3 months ago

I missed it completely, will re-open as bug

ihardyslide commented 2 months ago

Hi,

unfortunately I still have found two last issues.

ihardyslide commented 2 months ago

Sorry for bumping, just scared you missed my update.