From d847c5bf782b3c525a52ae43c5747229a187da62 Mon Sep 17 00:00:00 2001 From: Ulric Date: Mon, 5 Feb 2024 16:30:55 +0100 Subject: [PATCH] :bug: set Body default color without override all --- src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap | 2 ++ src/components/typography/Body.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap b/src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap index d662c6ea..476ef6ea 100644 --- a/src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap +++ b/src/__tests__/components/__snapshots__/ActionCard.test.tsx.snap @@ -68,6 +68,7 @@ exports[`MODULE | ActionCard component renders correctly 1`] = ` "textAlign": "center", }, { + "color": "#212B36", "fontFamily": "PublicSans-Regular", "fontSize": 14, }, @@ -184,6 +185,7 @@ exports[`MODULE | ActionCard component renders correctly in disabled state 1`] = "textAlign": "center", }, { + "color": "#212B36", "fontFamily": "PublicSans-Regular", "fontSize": 14, }, diff --git a/src/components/typography/Body.tsx b/src/components/typography/Body.tsx index 27b777f4..070d642f 100644 --- a/src/components/typography/Body.tsx +++ b/src/components/typography/Body.tsx @@ -54,9 +54,9 @@ export const Body = (props: BodyProps) => { } bodyStyle = { + color: theme.sw.colors.neutral['800'], ...bodyStyle, fontFamily: 'PublicSans-' + weightSuffix, - color: theme.sw.colors.neutral['800'], }; return (