Skip to content

Commit b56be12

Browse files
committed
Fix button shadow on non-default themes
1 parent 50ff653 commit b56be12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/gitbook/src/components/Header/HeaderLink.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ function HeaderItemButton(
132132
'button-primary':
133133
headerPreset != CustomizationHeaderPreset.Default &&
134134
`bg-header-link dark:bg-header-link hover:bg-header-link dark:hover:bg-header-link
135-
text-header-background dark:text-header-background hover:text-header-background dark:hover:text-header-background`,
135+
text-header-background dark:text-header-background hover:text-header-background dark:hover:text-header-background
136+
shadow-none hover:shadow-none`,
136137
'button-secondary': tcls(
137138
headerPreset != CustomizationHeaderPreset.Default &&
138139
`bg-header-link/2 dark:bg-header-link/2 hover:bg-header-link/3 dark:hover:bg-header-link/3
139140
text-header-link dark:text-header-link hover:text-header-link dark:hover:text-header-link
140141
ring-header-link/4 dark:ring-header-link/4 hover:ring-header-link/5 dark:hover:ring-header-link/5
141-
contrast-more:ring-header-link contrast-more:bg-header-background contrast-more:text-header-link contrast-more:hover:ring-header-link`,
142+
contrast-more:ring-header-link contrast-more:bg-header-background contrast-more:text-header-link contrast-more:hover:ring-header-link
143+
shadow-none hover:shadow-none`,
142144
),
143145
}[linkStyle],
144146
)}

0 commit comments

Comments
 (0)