Skip to content

Switch toggle in table rows? #3054

Answered by nkrantz
mtl87 asked this question in Q&A
Feb 24, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey, @mtl87! Tables should only contain static data (see Table docs here) because interactions on large Tables can cause unpleasant experiences for some assistive technology/keyboard users. If you need to put interactive controls in your Table, we'd suggest using a Data Grid instead. The Data Grid only has one tab stop, so users don't have to tab through every single control in order to escape the table.

Switches are fine to use in Data Grids, as are Checkboxes. If you do use the Switch, just be sure that the label text ("Enable" in your screenshot) doesn't change based on the state of the Switch. For example, when a user clicks a Switch, that label text shouldn't change to "Disable" (rea…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nkrantz
Comment options

@mtl87
Comment options

Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants