Skip to content

Commit 5b3e565

Browse files
committed
feat: add zIndex prop to drawer component and update modal z-index
Signed-off-by: Sameh16 <sameh_mohamed16@hotmail.com>
1 parent 528e5c4 commit 5b3e565

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

frontend/src/shared/drawer/drawer.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:destroy-on-close="true"
1212
:close-on-click-modal="false"
1313
:size="size"
14+
:z-index="zIndex"
1415
@close="onClose"
1516
>
1617
<template #header="{ close, titleId, titleClass }">
@@ -67,6 +68,7 @@
6768
import { defineProps, computed, defineEmits } from 'vue';
6869
import LfIcon from '@/ui-kit/icon/Icon.vue';
6970
import LfButton from '@/ui-kit/button/Button.vue';
71+
import { number } from 'yup';
7072
7173
const emit = defineEmits(['update:modelValue', 'close']);
7274
const props = defineProps({
@@ -106,6 +108,10 @@ const props = defineProps({
106108
type: Boolean,
107109
default: () => true,
108110
},
111+
zIndex: {
112+
type: number,
113+
default: () => 2004,
114+
},
109115
});
110116
111117
const model = computed({

frontend/src/ui-kit/modal/modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
width: 100%;
66
height: 100%;
77
background-color: rgba(0, 30, 51, 0.1);
8-
z-index: 2020;
8+
z-index: 2005;
99
visibility: visible;
1010
opacity: 1;
1111
display: flex;

0 commit comments

Comments
 (0)