Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material 3 Date Picker with Disabled Dates: Disabled Dates are Focusable with External Keyboard #4169

Open
swoods954 opened this issue May 10, 2024 · 0 comments

Comments

@swoods954
Copy link

swoods954 commented May 10, 2024

Description: Disabled dates in the M3 Date Picker component are focusable via external keyboard navigation, however there is no visible focus indicator. Disabled controls should not receive keyboard focus.

Note: This is an accessibility failure of WCAG 2.4.7 Focus Visible (and raises concerns with WCAG 2.1.1 Keyboard as well).

Expected behavior: Disabled controls are not focusable via external keyboard navigation. When using keys on a month with disabled dates, focus should skip over the disabled dates.

Note: Expected Behavior would match Material Compose Date Picker behavior

Steps to Reproduce:

  1. Connect a physical external keyboard to an Android mobile device
  2. Open a default Material 3 Date Picker component that contains disabled dates
  3. Using the keys on the keyboard, navigate to a disabled date
  4. Confirm disabled dates can be focused, but focus is “lost” since there is no visible focus indicator for the disabled dates

Note on attachments:

  1. Recording of issue from Material 3 Date Picker
  2. Bug report from Samsung Galaxy S20 (also reproducible on Google Pixel devices)
Material.M3.Date.Picker_Disabled.Dates.are.Focusabled.with.Keyboard.mp4

bugreport-x1quex-TP1A.220624.014-2024-05-01-16-12-22.zip

Android API version: All

Material Library version: 1.11.0 (at least)

Device: Samsung Galaxy S20 and all Google Pixel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants