Skip to content

Commit

Permalink
refactor to using styled components for cusomt z-index styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jun 14, 2021
1 parent 114444e commit 546a0fa
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ const StepsWithLessPadding = styled(EuiSteps)`
}
`;

const CustomEuiBottomBar = styled(EuiBottomBar)`
// Set a relatively _low_ z-index value here to account for EuiComboBox popover that might appear under the bottom bar
z-index: 50;
`;

interface AddToPolicyParams {
pkgkey: string;
integration?: string;
Expand Down Expand Up @@ -451,8 +456,7 @@ export const CreatePackagePolicyPage: React.FunctionComponent = () => {
)}
<StepsWithLessPadding steps={steps} />
<EuiSpacer size="l" />
{/* Note: we set a relatively _low_ zIndex value here to account for EuiComboBox popover that might appear under the bottom bar */}
<EuiBottomBar style={{ zIndex: 50 }}>
<CustomEuiBottomBar>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false}>
{!isLoadingSecondStep && agentPolicy && packageInfo && formState === 'INVALID' ? (
Expand Down Expand Up @@ -497,7 +501,7 @@ export const CreatePackagePolicyPage: React.FunctionComponent = () => {
</EuiFlexGroup>
</EuiFlexItem>
</EuiFlexGroup>
</EuiBottomBar>
</CustomEuiBottomBar>
</CreatePackagePolicyPageLayout>
);
};
Expand Down

0 comments on commit 546a0fa

Please sign in to comment.