Skip to content

Conversation

@natemoo-re
Copy link
Member

@natemoo-re natemoo-re commented Jan 9, 2026

Removes backgroundSecondary from our theme, closes DE-333

Recommend reviewing by commit:

049ffe6 replaced simple cases with background.secondary
587e368 replaced gradients
4117747 replaces interactive usage with correct tokens
36bf26d removes backgroundSecondary from theme

@linear
Copy link

linear bot commented Jan 9, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 9, 2026
@natemoo-re natemoo-re force-pushed the natemoore/de-333-remove-themebackgroundsecondary branch 2 times, most recently from bdf76d2 to 38e726b Compare January 12, 2026 20:17
@natemoo-re
Copy link
Member Author

Waiting on #106127 to unblock the test failures

natemoo-re added a commit that referenced this pull request Jan 12, 2026
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 force-pushed the natemoore/de-333-remove-themebackgroundsecondary branch from 38e726b to 88bb026 Compare January 12, 2026 22:05
@natemoo-re natemoo-re force-pushed the natemoore/de-333-remove-themebackgroundsecondary branch from bfa8e4f to 4365288 Compare January 13, 2026 17:07
@natemoo-re natemoo-re force-pushed the natemoore/de-333-remove-themebackgroundsecondary branch from 4365288 to adb74e2 Compare January 13, 2026 17:45
Copy link
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

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

Nice, thank you for adding the :active state here 🥇

@natemoo-re natemoo-re force-pushed the natemoore/de-333-remove-themebackgroundsecondary branch from 1fb0d1a to ba9090b Compare January 13, 2026 20:41
@natemoo-re natemoo-re marked this pull request as ready for review January 13, 2026 21:11
@natemoo-re natemoo-re requested review from a team as code owners January 13, 2026 21:11
@natemoo-re natemoo-re enabled auto-merge (squash) January 13, 2026 21:11
lineHeight: 12,
formatter: (value: number) => axisLabelFormatter(value, 'number', true),
textBorderColor: theme.backgroundSecondary,
textBorderColor: theme.tokens.border.secondary,
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong token used: border instead of background

Medium Severity

The textBorderColor property was changed from theme.backgroundSecondary to theme.tokens.border.secondary, but backgroundSecondary was an alias for tokens.background.secondary. The correct replacement is theme.tokens.background.secondary. Using the wrong token will result in a different color being rendered for the chart axis label text border, which could affect readability depending on the theme's border vs background color values.

Fix in Cursor Fix in Web

&:hover {
background-color: ${p => p.theme.backgroundSecondary};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Active state feedback removed from interactive button

Low Severity

The InsightCardButton component previously had an &:active { opacity: 0.8; } rule that provided visual feedback when clicked. This active state was removed entirely rather than being replaced with the interactive token pattern (tokens.interactive.transparent.neutral.background.active) used consistently elsewhere in this PR for similar interactive elements like autofixSolutionEventItem, autofixTimelineItem, and autofixInsightCard. This inconsistency removes click feedback from a button element that has role="button" and onClick.

Fix in Cursor Fix in Web

@natemoo-re natemoo-re merged commit 1a6612c into master Jan 13, 2026
52 checks passed
@natemoo-re natemoo-re deleted the natemoore/de-333-remove-themebackgroundsecondary branch January 13, 2026 21:18
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