Skip to content

Commit

Permalink
Add comment for select list height (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok authored Sep 28, 2023
1 parent e73ed62 commit 95af900
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Select/common/SelectStyled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ export const SearchClose = styled.button<{ $showClose: boolean }>`
visibility: ${({ $showClose }) => ($showClose ? "visible" : "hidden")};
`;

/*
Added the max-height with calc as the content should always be fit inside SelectPopoverContent
SelectPopoverContent has hardcoded padding and thats why we are using 1 rem instead of tokens
This makes sure that the content is always visible with the scrolling
*/
export const SelectList = styled.div`
display: flex;
flex-direction: column;
Expand Down

1 comment on commit 95af900

@vercel
Copy link

@vercel vercel bot commented on 95af900 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui-clickhouse.vercel.app
click-ui.vercel.app
click-ui-git-main-clickhouse.vercel.app

Please sign in to comment.