From c909de9b9dc5ef0b5e4a78c5053954ceb3e1fb36 Mon Sep 17 00:00:00 2001 From: Dmitriy Vostrikov Date: Sun, 15 Dec 2024 17:36:28 +0100 Subject: [PATCH] style: update TariffCard typography and adjust StepperField styling with theme colors Refs: #UPS-5301 --- .../components/tariff/TariffCard.tsx | 5 ++++- src/mobile/lib/ui/system/theme.ts | 4 ++++ .../lib/ui/uitpas/StepperField/StepperField.tsx | 16 ++++++++-------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/mobile/feature-saving/components/tariff/TariffCard.tsx b/src/mobile/feature-saving/components/tariff/TariffCard.tsx index 4883aa3..10a2f2e 100644 --- a/src/mobile/feature-saving/components/tariff/TariffCard.tsx +++ b/src/mobile/feature-saving/components/tariff/TariffCard.tsx @@ -108,7 +108,10 @@ export const TariffCard = ({ alignItems: "center", }} > - + {t("saving.mobile.tariff.card.count")} { const theme = useTheme(); + const handleIncrement = () => { onChange(value + incrementValue); }; @@ -44,7 +45,6 @@ export const StepperField = ({ } }; - // TODO: replace colors with colors from theme return ( = maxValue)} sx={{ - background: "#ffffff", + background: theme.palette.neutral[0], borderTopRightRadius: "6px", borderBottomRightRadius: "6px", borderTopLeftRadius: 0, borderBottomLeftRadius: 0, - border: "1px solid #d8dad9", + border: `1px solid ${theme.palette.neutral[300]}`, width: "44px", height: "37px", }}