File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/gitbook/src/components/SiteSections Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook " : patch
3
+ ---
4
+
5
+ Prevent section group popovers from opening on click
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ export function SiteSectionTabs(props: { sections: ClientSiteSections }) {
83
83
)
84
84
}
85
85
asChild
86
+ onClick = { ( e ) => {
87
+ if ( value ) {
88
+ e . preventDefault ( ) ;
89
+ e . stopPropagation ( ) ;
90
+ }
91
+ } }
86
92
>
87
93
< SectionGroupTab
88
94
isActive = { isActive }
@@ -180,7 +186,7 @@ const SectionGroupTab = React.forwardRef(function SectionGroupTab(
180
186
ref = { ref }
181
187
{ ...rest }
182
188
className = { tcls (
183
- 'group relative my-2 flex select-none items-center justify-between rounded straight-corners:rounded-none px-3 py-1 transition-colors' ,
189
+ 'group relative my-2 flex select-none items-center justify-between rounded straight-corners:rounded-none px-3 py-1 transition-colors hover:cursor-default ' ,
184
190
isActive
185
191
? 'text-primary-subtle'
186
192
: 'text-tint hover:bg-tint-hover hover:text-tint-strong'
You can’t perform that action at this time.
0 commit comments