Skip to content

Commit

Permalink
feat: make scroll area type auto for make default visible scrollbar (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Aug 2, 2024
1 parent ec9b5bf commit 13428d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion joi/src/core/ScrollArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ScrollArea = React.forwardRef<
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
>(({ className, children, onScroll, ...props }, ref) => (
<ScrollAreaPrimitive.Root
type="scroll"
type="auto"
className={twMerge('scroll-area__root', className)}
{...props}
>
Expand Down
8 changes: 4 additions & 4 deletions joi/src/core/ScrollArea/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
}

.scroll-area__bar[data-orientation='vertical'] {
width: 8px;
width: 10px;
}

.scroll-area__bar[data-orientation='horizontal'] {
flex-direction: column;
height: 8px;
height: 10px;
}

::-webkit-scrollbar {
width: 6px;
height: 6px;
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
Expand Down

0 comments on commit 13428d6

Please sign in to comment.