From 66dc7c5e1de06934ec417130184ad1f3c43c1c81 Mon Sep 17 00:00:00 2001 From: Haider Alshamma Date: Tue, 5 Nov 2024 12:28:43 -0500 Subject: [PATCH] fix: visual defects following theme change --- src/Alert/Alert.tsx | 4 +--- src/BrandedNavBar/MobileMenu.tsx | 6 +++--- src/Breadcrumbs/BreadcrumbsListItem.tsx | 1 + src/Button/ControlIcon.tsx | 11 +---------- src/Icon/Icon.tsx | 2 +- src/utils/subPx.js | 6 ------ src/utils/subPx.ts | 11 +++++++++++ 7 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 src/utils/subPx.js create mode 100644 src/utils/subPx.ts diff --git a/src/Alert/Alert.tsx b/src/Alert/Alert.tsx index 77e03b608..308f42fe4 100644 --- a/src/Alert/Alert.tsx +++ b/src/Alert/Alert.tsx @@ -81,9 +81,7 @@ const Alert = ({ return ( ({ zIndex: theme.zIndices.content, width: "100%", color: theme.colors.white, - [`${Heading3}`]: { + [`${TopLevelText}`]: { padding: `${theme.space.x1} 0 ${theme.space.x1} ${theme.space.x3}`, }, })); @@ -226,14 +226,14 @@ type BaseMobileMenuProps = { showNulogyLogo?: boolean; }; -const BaseMobileMenu: React.FC> = ({ +const BaseMobileMenu = ({ menuData, closeMenu, subtext, themeColorObject, showNulogyLogo, ...props -}) => ( +}: BaseMobileMenuProps) => (