Repository navigation
Accessibility: Toggle Group used as 'radio' group? #552
|
Is it acceptable, in terms of accessibility, to use the Toggle Group like a radio option if it has same characteristics as a radio group (e.g., default value selected and only one can be selected at a time)? Both use roving tabindex. Label for this group would be something like "please select one of following" and each option is a binary on/off, and only one can be selected, and there would still be an icon/background color change to indicate selected - that appears to be be practically similar but wasn't sure if there is something that makes this unacceptable. Thanks! |
Replies: 1 comment 1 reply
|
Hey @SemperYak, in |
Hey @SemperYak, in
type="single"mode, yes it should be acceptable accessibility-wise.The biggest difference between a
RadioGroupand aToggleGroupwithtype="single"will be the fact thatToggleGroupis less suited for forms as it won't bubble a value change. So it kinda depends how you're using it.