Skip to content

Commit 663b8c8

Browse files
committed
fix(light): z-index of menu
1 parent 1058f3c commit 663b8c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

light/src/components/select.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</span>
2222
</span>
2323

24-
<div :style="floatingStyles" ref="floating">
24+
<div class="z-20" :style="floatingStyles" ref="floating">
2525
<transition name="cl-menu">
2626
<div v-if="menu" class="cl-menu">
2727
<div class="cl-row" v-for="(row, i) in itemRows" :key="i">
@@ -172,10 +172,13 @@ export default defineComponent({
172172
border: var(--cl-border, 1px solid #ddd);
173173
background-color: var(--cl-bg-color, #eee);
174174
list-style: none;
175-
z-index: 100;
176175
transform-origin: top left;
177176
}
178177
178+
.z-20 {
179+
z-index: 20;
180+
}
181+
179182
.cl-menu-enter-active,
180183
.cl-menu-leave-active {
181184
transition: all 0.1s ease;

0 commit comments

Comments
 (0)