DatePicker: improve accessibility semantics, correct SR announcements and keyboard focus behavior#8513
Conversation
|
Great PR! Since the critical accessibility issues currently in this datepicker primevue component it's breaking users which are using the keyboard and/or screen reader (or any other assistive device). Which makes it a component we currently can not use yet |
|
Any movement on these accessibility updates? I'm a consultant at a company that has requirements to meet WCAG 2.2 and the datepicker is causing us quite a few issues. We'd done quite a lot of adaptations using the pass through attributes for version 3. Then a colleague upgraded to version 4 this week and a lot of things broke because of all the name changes to the pass through attributes. It would be so much easier if it could be fixed from your side so we don't have to worry every time we upgrade. |
This PR improves DatePicker accessibility semantics, screen reader announcement, and keyboard/focus behavior.
What changed
Enterto avoid unnecessarypreventDefault.Why
These changes improve screen reader and keyboard UX while preserving existing component behavior as much as possible.
Validation
Ran DatePicker unit tests:
src/datepicker/DatePicker.spec.jspasses.Ran a11y automated tool (used axe DevTools)
Notes