You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a screen reader, such as VoiceOver, focus the "Ah what is CVV again?" control
It is identified as a checkbox
This was reported by a screen reader to me as being confusing, because there is no indication that the checkbox is for opening an expandable section.
To fix
Make the checkbox control a button and toggle its expanded state. This will prompt screen readers to say "Ah what is CVV again? Toggle button, collapsed" (unexpanded state) and "Ah what is CVV again? Toggle button, expanded" (expanded state).
Unexpanded state
<buttonaria-expanded="false">Ah what is CVV again?</button>
Expanded state
<buttonaria-expanded="true">Ah what is CVV again?</button>
The text was updated successfully, but these errors were encountered:
To reproduce
This was reported by a screen reader to me as being confusing, because there is no indication that the checkbox is for opening an expandable section.
To fix
Make the checkbox control a button and toggle its expanded state. This will prompt screen readers to say "Ah what is CVV again? Toggle button, collapsed" (unexpanded state) and "Ah what is CVV again? Toggle button, expanded" (expanded state).
Unexpanded state
Expanded state
The text was updated successfully, but these errors were encountered: