Skip to content

Commit

Permalink
Allows overflow on Dropdown.Content sets min-height on Dropdown.Item
Browse files Browse the repository at this point in the history
  • Loading branch information
natalyjazzviolin committed Jan 29, 2025
1 parent 0e75a47 commit a5d9410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Dropdown = (props: DropdownMenu.DropdownMenuProps) => (
const DropdownMenuItem = styled(GenericMenuItem)`
position: relative;
display: flex;
min-height: 32px;
&[data-state="open"] {
${({ theme }) => `
font: ${theme.click.genericMenu.item.typography.label.hover};
Expand Down Expand Up @@ -93,6 +94,7 @@ const DropdownMenuContent = styled(GenericMenuPanel)`
min-width: ${({ theme }) => theme.click.genericMenu.item.size.minWidth};
flex-direction: column;
z-index: 1;
overflow-y: auto;
`;

const DropdownContent = ({
Expand Down

0 comments on commit a5d9410

Please sign in to comment.