Skip to content

Conversation

@natemoo-re
Copy link
Member

In the course of #106037, I hit a fun exception in the TeamSelector.

Previously, the style functions accessed state.theme from the react-select callback, casting it as Sentry's global theme because it also uses Emotion. In the test environment, react-select provided a theme object that didn't have Sentry's tokens property, causing theme.tokens.background to fail.

In this PR, we've refactored the TeamSelector to have receive the theme from useTheme() hook instead of expecting Emotion to automatically merge react-select's theme with ours.

@natemoo-re natemoo-re requested a review from a team January 12, 2026 21:49
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 12, 2026
@natemoo-re natemoo-re enabled auto-merge (squash) January 12, 2026 21:54
@natemoo-re natemoo-re merged commit 865de77 into master Jan 12, 2026
52 checks passed
@natemoo-re natemoo-re deleted the theme/nm/fix-select branch January 12, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants