Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge 06e6d60 into df8a849
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrenceLJones committed Sep 12, 2019
2 parents df8a849 + 06e6d60 commit dfac27c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Dropdown/V2/Dropdown.Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface Props {
renderMenu?: (props: any) => void
style: Object
withScrollLock: boolean
wrapperStyles: Object
zIndex: number
}

Expand All @@ -30,6 +31,7 @@ export class Menu extends React.PureComponent<Props> {
role: 'listbox',
style: {},
withScrollLock: true,
wrapperStyles: {},
zIndex: 1015,
}

Expand All @@ -39,6 +41,12 @@ export class Menu extends React.PureComponent<Props> {
return { ...style, zIndex }
}

getWrapperStyles(): Object {
const { wrapperStyles } = this.props

return { ...wrapperStyles }
}

renderMenu() {
const {
children,
Expand Down Expand Up @@ -74,6 +82,7 @@ export class Menu extends React.PureComponent<Props> {
<MenuWrapperUI
className="c-DropdownV2MenuWrapper"
innerRef={innerWrapperRef}
style={this.getWrapperStyles()}
>
{menuMarkup}
</MenuWrapperUI>
Expand Down

0 comments on commit dfac27c

Please sign in to comment.