Move highlight-on-hover for calendar picker to CSS
This change moves the logic for handling highlight-on-hover for cells in date controls out of the JS and into :hover CSS rules. I'd originally planned for this work to wait until the old form controls implementation was removed. However, the highlight-managing code is setting ARIA attributes in a way that doesn't make sense now that the highlight positions no longer drive selection and are merely decorative. So as part of improving the screen reader experience for these controls it seems best to go ahead and do this work now. The highlight-managing code is now all effectively dead code when FormControlsRefresh is enabled that can be straightforwardly chopped out when the time comes to remove the old implementation. A follow-up change will ensure that the correct ARIA attributes are set for selection changes. Bug: 1046054, 1053798 Change-Id: Ie5081ef23b308a82bfc03887f96c912a82f411b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083866 Commit-Queue: Dan Clark <daniec@microsoft.com> Reviewed-by:Mason Freed <masonfreed@chromium.org> Reviewed-by:
Ionel Popescu <iopopesc@microsoft.com> Cr-Commit-Position: refs/heads/master@{#747984}
Showing
This diff is collapsed.

16.6 KB


18.1 KB
16.7 KB
18.3 KB

5.91 KB


6.65 KB
5.64 KB
6.32 KB
5.71 KB
5.76 KB
6.77 KB
5.71 KB
5.9 KB
5.76 KB
6.77 KB
6.66 KB
5.71 KB
5.9 KB
5.76 KB
6.77 KB
6.66 KB
5.71 KB
5.9 KB
5.76 KB
6.77 KB
6.66 KB

5.9 KB


6.66 KB
5.64 KB
6.33 KB

5.96 KB


6.71 KB
6.01 KB
6.64 KB

5.97 KB


6.72 KB
6.03 KB
6.65 KB
File moved