Skip to content

Commit 7194a6d

Browse files
committed
Event more muted tab icons when not active
1 parent de6a2c8 commit 7194a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gitbook/src/components/SiteSectionTabs/SiteSectionTabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function SiteSectionTabs(props: {
9393
href={urls.published ?? ''}
9494
ref={isActive ? currentTabRef : null}
9595
icon={icon ? (
96-
<SectionIcon className={tcls("text-primary/7 dark:text-primary-400/7", isActive && "text-inherit")} section={section} />
96+
<SectionIcon className={tcls("text-inherit opacity-8", isActive && "text-inherit opacity-10")} section={section} />
9797
) : null}
9898
/>
9999
)})}
@@ -138,7 +138,7 @@ const Tab = React.forwardRef<
138138
return (
139139
<Link
140140
className={tcls(
141-
'px-3 py-1 my-2 rounded straight-corners:rounded-none transition-colors',
141+
'group/tab px-3 py-1 my-2 rounded straight-corners:rounded-none transition-colors',
142142
active && 'text-primary dark:text-primary-400',
143143
!active &&
144144
'text-dark/8 hover:bg-dark/1 hover:text-dark/9 dark:text-light/8 dark:hover:bg-light/2 dark:hover:text-light/9',

0 commit comments

Comments
 (0)