From 718c44d19cd1781ec86e3777e726585b4018a2d4 Mon Sep 17 00:00:00 2001 From: Jukka Raimovaara Date: Fri, 14 Feb 2025 11:09:54 +0200 Subject: [PATCH 1/7] feat(BModal): use css var for zindex, add helper vars and ontop class --- .../src/components/BModal/BModal.vue | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/packages/bootstrap-vue-next/src/components/BModal/BModal.vue b/packages/bootstrap-vue-next/src/components/BModal/BModal.vue index 8fcddb85b..32ab8395a 100644 --- a/packages/bootstrap-vue-next/src/components/BModal/BModal.vue +++ b/packages/bootstrap-vue-next/src/components/BModal/BModal.vue @@ -16,6 +16,7 @@ { fade: !computedNoAnimation, show: isVisible, + ontop: (activeModalCount ?? 0) - 1 === (activePosition ?? 0), }, ]" role="dialog" @@ -114,6 +115,7 @@ :class="{ fade: !computedNoAnimation, show: backdropVisible || computedNoAnimation, + ontop: (activeModalCount ?? 0) - 1 === (activePosition ?? 0), }" @click="hide('backdrop')" /> @@ -125,7 +127,16 @@ + ``` @@ -240,4 +268,22 @@ const preventFn = (e: Event) => { const nestedModal1 = ref(false) const nestedModal2 = ref(false) const nestedModal3 = ref(false) +const nestedModal4 = ref(false) + + From 23c7ad09813e4d997d742a1dd224ac81d74b82aa Mon Sep 17 00:00:00 2001 From: Jukka Raimovaara Date: Fri, 23 May 2025 01:21:29 +0300 Subject: [PATCH 7/7] right comment --- apps/docs/src/docs/components/modal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/src/docs/components/modal.md b/apps/docs/src/docs/components/modal.md index 75bd98aae..9f19cb3b9 100644 --- a/apps/docs/src/docs/components/modal.md +++ b/apps/docs/src/docs/components/modal.md @@ -211,7 +211,7 @@ const nestedModal3 = ref(false) const nestedModal4 = ref(false)