Skip to content

Commit

Permalink
feat(suite-native): slightly better contrast for default switch backg…
Browse files Browse the repository at this point in the history
…round

- Temporary solution before new palette is implemented.
  • Loading branch information
matejkriz committed Jan 13, 2025
1 parent 492044c commit ad8e308
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions suite-native/atoms/src/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ const useAnimationStyles = ({ isChecked }: Pick<SwitchProps, 'isChecked'>) => {
backgroundColor: interpolateColor(
translateX.value,
[0, SWITCH_CIRCLE_TRACK_WIDTH],
[
utils.colors.backgroundNeutralSubtleOnElevationNegative,
utils.colors.backgroundPrimaryDefault,
],
[utils.colors.backgroundNeutralSubdued, utils.colors.backgroundPrimaryDefault],
),
}));

Expand Down

0 comments on commit ad8e308

Please sign in to comment.