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
Preview removed because the pull request was closed.
2026-01-23 14:41 UTC

@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?

@ToMESSKa ToMESSKa force-pushed the INSTUI-4882-toggle-group-rework branch from 7562481 to 5c15782 Compare January 23, 2026 12:35
@ToMESSKa ToMESSKa merged commit caf10f5 into v12 Jan 23, 2026
8 of 9 checks passed
@ToMESSKa ToMESSKa deleted the INSTUI-4882-toggle-group-rework branch January 23, 2026 14:40
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.

5 participants