Skip to content

Commit

Permalink
allow fit-content height (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored Dec 21, 2023
1 parent 423bea2 commit e33a9f1
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 e33a9f1

Please sign in to comment.