Skip to content

Conversation

@ToMESSKa
Copy link
Contributor

@ToMESSKa ToMESSKa commented Jan 20, 2026

INSTUI-4882

ISSUE:

  • ToggleGroup needs to be migrated to the new theming system

TEST PLAN:

  • check if all tokens are used in styles.ts
  • check if the component works the same as before
  • check the new themes

@ToMESSKa ToMESSKa self-assigned this Jan 20, 2026
@ToMESSKa ToMESSKa force-pushed the INSTUI-4882-toggle-group-rework branch from a7b7717 to 3a179c7 Compare January 20, 2026 12:51
@github-actions
Copy link

github-actions bot commented Jan 20, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2375/

Built to branch gh-pages at 2026-01-20 13:28 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@ToMESSKa ToMESSKa force-pushed the INSTUI-4882-toggle-group-rework branch from 3a179c7 to 7562481 Compare January 20, 2026 13:23
Comment on lines 226 to +227
await waitFor(() => {
svg = container.querySelector('svg')!
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renderIconWithProps uses React.createElement, causing React to replace the SVG DOM node when icons change (instead of updating in place). The test held a stale reference to the old SVG.

Comment on lines +51 to +55
const toggleGroupSizeToIconSize = {
small: 'md',
medium: 'md',
large: 'lg'
} as const
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamlobler can you check these sizes please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants