Skip to content

Commit

Permalink
Recover RECOMMENDED_CSS__SCROLLAREA__VIEWPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Moroz committed Jun 10, 2024
1 parent e2f981e commit 667bd78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion packages/react/scroll-area/src/ScrollArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,14 @@ const scrollAreaClass = css({
border: '1px solid black',
});

const scrollAreaViewportClass = css();
const RECOMMENDED_CSS__SCROLLAREA__VIEWPORT: any = {
width: '100%',
height: '100%',
};

const scrollAreaViewportClass = css({
...RECOMMENDED_CSS__SCROLLAREA__VIEWPORT,
});

const RECOMMENDED_CSS__SCROLLBAR__ROOT: any = {
display: 'flex',
Expand Down
2 changes: 0 additions & 2 deletions packages/react/scroll-area/src/ScrollArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ const ScrollAreaViewport = React.forwardRef<ScrollAreaViewportElement, ScrollAre
display: flex;
flex-direction: column;
align-items: stretch;
width: 100%;
height: 100%;
}
:where([data-radix-scroll-area-content]) {
flex-grow: 1;
Expand Down

0 comments on commit 667bd78

Please sign in to comment.