-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
DateTimePicker: AM/PM switcher is not screen reader accessible #61163
Comments
ToggleGroupControl seems perfect for this case. Would the compact size prop work there? Not a blocker, but can likely be useful in this context. |
Good point, I see how this can be enhanced to use a ComboboxControl. We can do a quick accessibility fix now by using a ToggleGroupControl for the AM/PM toggle, and once we have a rewritten ComboboxControlV2 it might be worth enhancing the inputs. |
Raised a PR for this issue here #61562 |
Hey @mirka, If this issue is open, I would like to work on this |
@MadGanGithub It seems like @patil-vipul abandoned the PR (?), so please feel free to submit a new PR. |
@mirka I'll be pushing new PR with same changes, as the previous PR got messed up. |
The previous attempt #61562 was closed without merging — @MadGanGithub would you be up for working on it? |
We need to land this in the next month or two for this to be included in WP 6.7. Do we still have any takers to work on this? |
Since it's been a while and no one unfortunately volunteered, here is a PR closing this issue #64800 |
What problem does this address?
The AM/PM toggle that appears when
is12Hour={ true }
only expresses state through visual styling, and cannot be distinguished by screen readers.What is your proposed solution?
A similarly styled component,
RadioGroup
, is already deprecated in favor ofToggleGroupControl
. Since we don't really use this UI pattern anymore, can we just replace it with a ToggleGroupControl? @WordPress/gutenberg-designThe text was updated successfully, but these errors were encountered: