cds-snc / ircc-rescheduler

🙅🗓
https://vancouver.rescheduler-dev.cds-snc.ca/
MIT License
24 stars 7 forks source link

Add first available day information for screenreader on the calendar page #511

Closed pcraig3 closed 5 years ago

pcraig3 commented 5 years ago

This is one last PR to improve the screenreader experience for the calendar page. On the calendar page text, we have the months you can pick from, and we have the days that you can pick from, but we never tell you what is the first day you can pick.

screen shot 2018-10-12 at 6 18 11 pm

In this picture above, without being able to see the calendar, you would know that you can select Tuesdays and Wednesdays in November, but you wouldn't know that the first Tuesday you can pick is the 20th.

changes

gifs

when reading text on the page

(when voiceover is on, you can use option+control+right arrow)

before after
doesn't mention the first day you can select mentions the first day you can select
voiceover-1 voiceover-3

when tabbing down the page

(when voiceover is on, you just hit the tab key) (note that I did this in Safari: for some reason, voiceover doesn't read the aria-labelledby label in chrome, even though that is the expected behaviour)

before after
calendar says "next month" by default calendar now reads first month, pauses, and then reads first available day
voiceover-2 voiceover-4