Skip to content

Commit 378362d

Browse files
author
Amrit Kashyap Borah
committed
chore: remove unneeded zIndex prop
1 parent 3941752 commit 378362d

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { FloatingVariablesSuggestionsProps } from './types'
3838
* @returns
3939
*/
4040
const FloatingVariablesSuggestions = ({
41-
zIndex,
4241
appId,
4342
envId,
4443
clusterId,
@@ -69,15 +68,14 @@ const FloatingVariablesSuggestions = ({
6968
<div className={`${isActive ? 'dc__visibility-hidden dc__disable-click' : ''} `}>
7069
<DraggableWrapper
7170
key="collapsed"
72-
zIndex={zIndex}
7371
positionVariant={DraggablePositionVariant.SCREEN_BOTTOM_RIGHT}
7472
dragSelector={`.${DRAG_SELECTOR}`}
7573
boundaryGap={boundaryGap}
7674
parentRef={null}
7775
>
7876
<div
7977
className="bcn-7 dc__outline-none-imp dc__border-n0 br-48 flex h-40 pt-8 pb-8 pl-12 pr-12 dc__gap-8 dc__no-shrink"
80-
style={{ zIndex, boxShadow: '0px 4px 8px 0px rgba(0, 0, 0, 0.20)' }}
78+
style={{ boxShadow: '0px 4px 8px 0px rgba(0, 0, 0, 0.20)' }}
8179
data-testid="collapsed-state"
8280
>
8381
<button type="button" className="dc__outline-none-imp dc__no-border p-0 bcn-7 h-24">
@@ -102,7 +100,6 @@ const FloatingVariablesSuggestions = ({
102100
<div className={`${!isActive ? 'dc__visibility-hidden dc__disable-click' : ''}`}>
103101
<DraggableWrapper
104102
key={`expanded-${loadingScopedVariables}`}
105-
zIndex={zIndex}
106103
positionVariant={DraggablePositionVariant.SCREEN_BOTTOM_RIGHT}
107104
dragSelector={`.${DRAG_SELECTOR}`}
108105
boundaryGap={boundaryGap}
@@ -111,7 +108,6 @@ const FloatingVariablesSuggestions = ({
111108
<div
112109
className={`flex column dc__no-shrink w-356 dc__content-space dc__border-radius-8-imp dc__border dc__overflow-hidden mxh-504 bg__overlay--primary ${ALLOW_ACTION_OUTSIDE_FOCUS_TRAP}`}
113110
style={{
114-
zIndex,
115111
boxShadow: '0px 4px 8px 0px rgba(0, 0, 0, 0.25)',
116112
}}
117113
>

src/Shared/Components/FloatingVariablesSuggestions/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface ScopedVariableType {
2929
export interface FloatingVariablesSuggestionsProps
3030
extends Required<Pick<AppConfigProps, 'isTemplateView'>>,
3131
Pick<DraggableWrapperProps, 'boundaryGap'> {
32-
zIndex: number
3332
appId?: string
3433
envId?: string
3534
clusterId?: string

0 commit comments

Comments
 (0)