Skip to content

Studio: replace the remaining hand-rolled toggles with the Toggle primitive #2336

Closed

Description

@peppescg

Part of #2201.

Summary

Replace the remaining hand-rolled aria-pressed toggles with the Toggle or ToggleGroup primitive (apps/web/src/components/ui/toggle.tsx, toggle-group.tsx). #2334 already converted delegation-panel and content-preview-panel.

Remaining call sites

  • apps/web/src/features/chat/chat-composer.tsx
  • apps/web/src/features/chat/composer-options-sheet.tsx
  • apps/web/src/features/chat/model-effort-menu.tsx
  • apps/web/src/features/chat/side-thread-panel.tsx

Dependencies

Done when

  • No aria-pressed on a hand-rolled control in these files.
  • Pressed state, keyboard behaviour and accessible names are unchanged, with tests pinned first.
  • Before | After | Prototype screenshots are in the PR.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions