Skip to content

Commit e9b31a5

Browse files
authored
Unify section tab styles with page item styles (#2552)
1 parent 7f28a88 commit e9b31a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/heavy-walls-collect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': minor
3+
---
4+
5+
Unify section tab styles with page item styles

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ const Tab = React.forwardRef<
119119
className={tcls(
120120
'px-3 py-1 my-2 rounded straight-corners:rounded-none transition-colors',
121121
active && 'text-primary dark:text-primary-400',
122-
!active && ' hover:bg-light-2 dark:hover:bg-dark-3',
122+
!active &&
123+
'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',
123124
)}
124125
role="tab"
125126
href={href}

0 commit comments

Comments
 (0)