Skip to content

Commit

Permalink
fix(Dialog): pass zIndex as wrapper style instead of v-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Aug 30, 2024
1 parent 67bbc21 commit 63847c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/overlays/dialog/RuiDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface DialogProps {
maxWidth?: string | number;
bottomSheet?: boolean;
contentClass?: any;
zIndex?: number;
zIndex?: string | number;
}
defineOptions({
Expand Down Expand Up @@ -138,6 +138,7 @@ const contentTransition = computed(() => {
<div
v-if="isOpen || internalValue"
:class="css.wrapper"
:style="{ zIndex }"
role="dialog"
tabindex="0"
@keydown.esc.stop="!persistent && close()"
Expand Down Expand Up @@ -175,8 +176,6 @@ const contentTransition = computed(() => {
<style lang="scss" module>
.wrapper {
@apply fixed w-full h-full top-0 left-0;
z-index: v-bind(zIndex);
}
.overlay {
Expand Down

0 comments on commit 63847c8

Please sign in to comment.