From b7cecfbb668273e5ce251f6b788bce0821392133 Mon Sep 17 00:00:00 2001 From: Piyush Garg Date: Mon, 5 Jun 2023 14:54:16 +0530 Subject: [PATCH] fix: Skeleton Padding and Width Issue (#9310) * Fixed the Skeleton Padding and Width Issue * Fix the Icon Bounce on Skeleton --------- Co-authored-by: Peer Richelsen --- packages/features/shell/Shell.tsx | 9 +++++---- packages/ui/components/skeleton/index.tsx | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index aaae5f1661..28a92475c2 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -646,17 +646,18 @@ const NavigationItem: React.FC<{ href={item.href} aria-label={t(item.name)} className={classNames( - "hover:bg-emphasis [&[aria-current='page']]:bg-emphasis hover:text-emphasis text-default group flex items-center rounded-md py-2 px-3 text-sm font-medium", + "[&[aria-current='page']]:bg-emphasis text-default group flex items-center rounded-md py-2 px-3 text-sm font-medium", isChild ? `[&[aria-current='page']]:text-emphasis hidden h-8 pl-16 lg:flex lg:pl-11 [&[aria-current='page']]:bg-transparent ${ props.index === 0 ? "mt-0" : "mt-px" }` - : "[&[aria-current='page']]:text-emphasis mt-0.5 text-sm" + : "[&[aria-current='page']]:text-emphasis mt-0.5 text-sm", + isLocaleReady ? "hover:bg-emphasis hover:text-emphasis" : "" )} aria-current={current ? "page" : undefined}> {item.icon && (