Add weekdaysLong value as weekday aria-label #1104
cjwiseman11
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
When using "weekdaysShort", assistive technology will also read out the shortened versions and this can sometimes be meaningless (e.g. M, T, W, T, F, S, S).
Describe the solution you'd like
A nice, simple solution would be to add "weekdaysLong" as the aria-label for each weekday element
Describe alternatives you've considered
Currently it's possible to create your own weekday element and add the aria-label manually but it could be a nice accessibility feature to add this as standard. Current workaround for me:
weekdayElement={({ weekdaysShort, weekdaysLong, weekday, className }) => ( <p className={className} aria-label={weekdaysLong[weekday]}> {weekdaysShort[weekday]} </p> )}
Beta Was this translation helpful? Give feedback.
All reactions