w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.18k stars 312 forks source link

Date Pickers: Document why space and enter behave differently in accessibility features section #1446

Open mcking65 opened 3 years ago

mcking65 commented 3 years ago

In the 07 Jul 2020 meeting, we discussed the Enter and Space behavior in the combobox date picker dialog.

It was mentioned that it might be helpful to readers if this differentiation were explained in the accessibility features section.

The rationale for the current implementation is that by having Enter and Space differentiated, both the single date picker and the date range picker could have the same behaviors for Enter and Space. It is also worth noting that this is not a necessary distinction, and is one that may be revisited based on community feedback.

dotjay commented 3 years ago

Related to this, note that in the current datepicker example, pressing Space does not cause the aria-selected attribute to update and therefore style the selected date accordingly. Space only appears to update the value of the field.

jongund commented 3 years ago

@dotjay

Thank you for reporting this bug, pull request 1494 fixes the aira-select issue, could you review it? The pull request has a preview link to test the fix.

dotjay commented 2 months ago

@jongund Only nearly 4 years later, but I tested this and found that it now works as expected, but never replied to indicate this.

I notice that the documentation does not yet differentiate between the Space and Enter behaviours. Would a pull request that separates the Enter and Space behaviours under the heading Date Picker Dialog: Date Grid be useful?