Accessibility
DayPicker is designed to adhere to the ARIA Authoring Practices Guide for date pickers. This includes features such as keyboard navigation, focus management, and labeling.
Depending on your design, you may need to add new accessibility features. For instance, when working with Input Fields, there could be some restrictions depending on the level of accessibility you aim to achieve. Stay updated with the best practices by following the ARIA Patterns.
ARIA Labels Translation​
When translating the date picker to another language, it's necessary to update the ARIA labels to match the new language. Refer to Localization for more information.
Keyboard Navigation​
Keys | Function |
---|---|
Arrow Top | Move focus to the previous week |
Arrow Right | Move focus to the next day |
Arrow Bottom | Move focus to the next week |
Arrow Left | Move focus to the previous day |
Page Up | Move focus to the previous month |
Page Down | Move focus to the next month |
Shift + Page Up | Move focus to the previous year |
Shift + Page Down | Move focus to the next year |
Home | Move focus to the start of the week |
End | Move focus to the end of the week |
Enter/Space | Select the focused day |
Reporting Issues With Accessibility​
Accessibility is a field that is constantly evolving. If you encounter any issues with DayPicker, please open an issue or share your feedback to help make the library more accessible.
See also the existing accessibility issues.