Skip to content

Commit

Permalink
allow fit-content height
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp committed Dec 21, 2023
1 parent c2809d6 commit 5b4cb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drafts/SelectPanel2/SelectPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type SelectPanelProps = {

// TODO: move these to SelectPanel.Overlay or overlayProps
width?: OverlayProps['width']
height?: OverlayProps['height']
height?: OverlayProps['height'] | 'fit-content'

children: React.ReactNode
}
Expand Down Expand Up @@ -190,7 +190,7 @@ const Panel: React.FC<SelectPanelProps> = ({
return (
<>
{Anchor}

{/* @ts-ignore TODO: StyledOverlay does not like height:fit-content */}
<StyledOverlay
as="dialog"
ref={dialogRef}
Expand Down

0 comments on commit 5b4cb13

Please sign in to comment.