fix: #10553 - "Apps" child items not highlighted when selected (#10565)

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Nadeem AshrafandUdit Takkar authored and GitHub committed 2023-08-08 23:33:58 +02:00
1 parent 59ea4d624b
commit 2aa0188418
1 file changed
+3 -2
+3 -2
View File
@@ -655,9 +655,10 @@ const NavigationItem: React.FC<{
href={item.href}
aria-label={t(item.name)}
className={classNames(
"[&[aria-current='page']]:bg-emphasis text-default group flex items-center rounded-md px-2 py-1.5 text-sm font-medium",
"text-default group flex items-center rounded-md px-2 py-1.5 text-sm font-medium",
item.child ? `[&[aria-current='page']]:bg-transparent` : `[&[aria-current='page']]:bg-emphasis`,
isChild
? `[&[aria-current='page']]:text-emphasis hidden h-8 pl-16 lg:flex lg:pl-11 [&[aria-current='page']]:bg-transparent ${
? `[&[aria-current='page']]:text-emphasis [&[aria-current='page']]:bg-emphasis hidden h-8 pl-16 lg:flex lg:pl-11 ${
props.index === 0 ? "mt-0" : "mt-px"
}`
: "[&[aria-current='page']]:text-emphasis mt-0.5 text-sm",