Not seeing aria labels on day buttons #1545
-
On the docs examples, the days buttons have an aria-label with the date on it, but on the newest versions, it doesn't have that label. Am I missing a setting to enable that or was this removed in some version? I tried different versions in a codesandbox and couldn't find one that includes the labels. It would really helpful to have those labels for jest testing purposes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@iantbarker I can see the labels with the latest version: https://codesandbox.io/s/react-day-picker-8-vl4ry Could you replicate your issue by forking this sandbox? |
Beta Was this translation helpful? Give feedback.
-
Hi @gpbl, I see that from last v8.5.0 update, labelDay has been deprecated and aria-label removed. This causes each grid cell to be named by a number, see sandbox. Prior to this change each grid cell stated the date in local format, which was nice in terms of a11y, see sandbox Is there a reason why is the label being removed? Is there an alternative to print a localised date in the aria-label? EDIT: There is a discussion that gives a clear reply about this: #1716 |
Beta Was this translation helpful? Give feedback.
@iantbarker I can see the labels with the latest version: https://codesandbox.io/s/react-day-picker-8-vl4ry
Could you replicate your issue by forking this sandbox?