mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
CHANGE overlayscrollbar option so the scrollbars are visible on hovering over the scrollable area
This commit is contained in:
parent
181241ef4d
commit
8654a04de2
@ -11,7 +11,7 @@ export interface ScrollProps {
|
||||
}
|
||||
|
||||
const Scroll = styled(({ vertical, horizontal, ...rest }: ScrollProps) => (
|
||||
<OverlayScrollbarsComponent options={{ scrollbars: { autoHide: 'scroll' } }} {...rest} />
|
||||
<OverlayScrollbarsComponent options={{ scrollbars: { autoHide: 'leave' } }} {...rest} />
|
||||
))<ScrollProps>(
|
||||
({ vertical }) =>
|
||||
!vertical
|
||||
|
Loading…
x
Reference in New Issue
Block a user