Skip to content

Commit 97e9791

Browse files
committed
fix(mobile): preserve dark card selection contrast
1 parent ae2d9a4 commit 97e9791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/mobile/src/components/ui/segmentedControlColors.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function segmentedControlColors(
2929
)
3030
: flattenThemeColor(themeColorWithAlpha(accent, dark ? 0.1 : 0.07), colors["--color-screen"]);
3131
// The thumb must lift off the track: --color-secondary nearly matches it in light themes.
32-
let selectedColor = colors["--color-card"];
32+
let selectedColor = dark && card ? colors["--color-secondary"] : colors["--color-card"];
3333
if (card && !dark) selectedColor = colors["--color-screen"];
3434
if (dark && (!card || themeId === "t3-code")) {
3535
selectedColor = flattenThemeColor(themeColorWithAlpha(accent, 0.2), colors["--color-screen"]);

0 commit comments

Comments
 (0)