Skip to content

feat(toggle): Add clarity around when to use a toggle vs. other components

Veethika Mishra requested to merge v_mishra-main-patch-87031 into main

What does this MR do?

Discussing the proposed design solution for issue gitlab-org/gitlab#328553 (closed) with @mle, resulted in a conversation around the use of Toggle vs Checkbox on the Settings page setting. This MR is an opportunity for the team to take the discussion forward and document a conclusion as a section in the guidelines.

  • Removed table comparing the different selection components because it was hard to use
  • Add section on When to use a toggle
    • Add comment to consider using a toast for feedback.
    • Add reference to solution validation insight
  • Add section When not to use a toggle
    • Add cases beyond needing to submit to consider not using a toggle
    • Add other components as a list instead of a table from before

Does this MR meet the acceptance criteria?

Links

Edited by Taurie Davis

Merge request reports