Skip to content

Commit

Permalink
Only apply height rules to virtualized autocomplete (#2281)
Browse files Browse the repository at this point in the history
OKTA-746694 fix(odyssey-react-mui): only apply height rules to virtualized autocomplete
  • Loading branch information
bryancunningham-okta authored Jul 8, 2024
1 parent e54a470 commit 06e3b18
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/odyssey-react-mui/src/theme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,14 @@ export const components = ({
padding: odysseyTokens.Spacing1,
marginRight: "unset",
},
popper: {
popper: ({ ownerState }) => ({
background: "transparent",
paddingBlockStart: odysseyTokens.Spacing1,
height: "100%",
maxHeight: "40vh",
},
...(ownerState.ListboxComponent !== undefined && {
height: "100%",
maxHeight: "40vh",
}),
}),
paper: ({ ownerState }) => ({
/**
* ListboxComponent is used when `isVirtualized` prop is true.
Expand Down

0 comments on commit 06e3b18

Please sign in to comment.