Add AllVariants screenshot test for toggle component

Summary

Toggle visual coverage was light: existing stories only exercised the value: true (on) state, leaving the off, disabled, and loading states untested by visual regression.

This MR adds a single AllVariants story that renders all six visually meaningful toggle states stacked vertically so one snapshot covers the matrix:

  • On
  • Off
  • On disabled
  • Off disabled
  • Loading on
  • Loading off

Screenshot 2026-05-08 at 12.30.32.png

Files changed

  • packages/gitlab-ui/src/components/base/toggle/toggle.stories.js — new AllVariants story.
Edited by Dan MH

Merge request reports

Loading