Skip to content

Commit

Permalink
fix: only show dropdown scrollbars in case of an overflow (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonsommer authored Jul 12, 2022
1 parent 25f7d20 commit e493042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TextLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ interface DropdownOptionsProps {
const DropdownOptions = styled.div<DropdownOptionsProps>`
display: ${({ $isOpen }) => ($isOpen ? "grid" : "none")};
position: absolute;
overflow: scroll;
overflow: auto;
grid-area: options;
grid-template-rows: repeat(
auto-fit,
Expand Down

0 comments on commit e493042

Please sign in to comment.