Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { pluralize } from 'shared/utils/text';
import shieldCheck from 'teleport/assets/shield-check.png';
import cfg from 'teleport/config';
import { TrashButton } from 'teleport/LocksV2/common';
import { zIndexMap } from 'teleport/Navigation/zIndexMap';
import { lockService } from 'teleport/services/locks';

import {
Expand Down Expand Up @@ -200,6 +201,7 @@ export const LockCheckout = forwardRef<HTMLDivElement, Props>(
top: 0;
left: 0;
overflow: hidden;
z-index: ${zIndexMap.checkoutSidePanel};
`}
>
<Dimmer className={transitionState} />
Expand Down
5 changes: 5 additions & 0 deletions web/packages/teleport/src/Navigation/zIndexMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
*/

export const zIndexMap = {
// "checkoutSidePanel" z-index must be a higher value than "topBar" z-index.
// checkoutSidePanel encompasses entire height of the browser and
// the high z-index prevents navigational bits from rendering over
// the panel.
checkoutSidePanel: 100,
topBar: 19,
sideNavButtons: 18,
sideNavContainer: 17,
Expand Down
Loading