Open eric-gade opened 1 month ago
Writing down thought so I don't lose it – I wonder if in place of tabs we might use radio buttons, styled as the toggle. The benefit is that it would announce which option is selected and allow for the more default key behavior.
@eric-gade assigning this to you for this sprint, let us know if you have questions or concerns.
This is blocked by #1967
Description
With #1926 and #1943, we implemented a toggle for the daily forecast details, where users can quickly switch between viewing just the table or just the charts (to reduce clutter on the screen).
However, I believe there are a11y problems with the way we've implemented this. For the moment, it is simply a USWDS button group with some javascript that enables the switching of what is displayed. But what we probably want is something more like the WCAG tabs pattern under the hood.
We still want the visual behavior to be the same as in the designs, but we want to ensure that screen reader users can understand what is going on, what is or is not being displayed, and how to switch properly between the displays.
Acceptance criteria