From 5682b89f01a74b596384bc41b993ad442a80915f Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Fri, 3 Feb 2023 13:27:26 +0530 Subject: [PATCH 1/2] fix variance, consolidate styles into shared selector --- .../Drawer/DrawerPanel/DesignColors.js | 6 +- .../Drawer/DrawerPanel/DesignTypography.js | 8 +- .../components/Drawer/stylesheet.scss | 83 +++++++------------ 3 files changed, 40 insertions(+), 57 deletions(-) diff --git a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignColors.js b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignColors.js index ecc6d11ba..2c8eba42b 100644 --- a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignColors.js +++ b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignColors.js @@ -277,9 +277,9 @@ const DesignColors = () => { paletteRenderedList.push(
handleClick( colorStyle ) } @@ -304,7 +304,7 @@ const DesignColors = () => { } } />
-
+
{ colorStyle?.charAt( 0 ).toUpperCase() + colorStyle?.slice( 1 ) }
diff --git a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js index 8d831f38c..b4184f611 100644 --- a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js +++ b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js @@ -134,8 +134,10 @@ const DesignTypography = () => { if ( splitLabel.length == 0 ) continue; paletteRenderedList.push(
handleClick( fontStyle ) } > @@ -149,7 +151,7 @@ const DesignTypography = () => { > Aa
-
+
Date: Tue, 7 Feb 2023 18:13:02 +0530 Subject: [PATCH 2/2] match color pairing with Aa text --- .../components/Drawer/DrawerPanel/DesignTypography.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js index b4184f611..644081e50 100644 --- a/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js +++ b/src/OnboardingSPA/components/Drawer/DrawerPanel/DesignTypography.js @@ -142,7 +142,7 @@ const DesignTypography = () => { onClick={ ( e ) => handleClick( fontStyle ) } >