aboutsummaryrefslogtreecommitdiff
path: root/src/components/popover/popover.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-06-22 00:30:10 +0300
committerHenry Jameson <me@hjkos.com>2022-06-22 00:30:10 +0300
commit872db65fd86aaa605789383e629321e32447a997 (patch)
tree498d4bba5b24a9dc7855809388dcea4a29389562 /src/components/popover/popover.js
parent93293db038a864aafd0f6da3df15bc86e0370bfc (diff)
slight z-index refactor and attempt at organizing it
Diffstat (limited to 'src/components/popover/popover.js')
-rw-r--r--src/components/popover/popover.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js
index cff9b174..5dfcf810 100644
--- a/src/components/popover/popover.js
+++ b/src/components/popover/popover.js
@@ -42,6 +42,7 @@ const Popover = {
// What selector (witin popover!) to use for determining center of popover
overlayCentersSelector: String
},
+ inject: ['popoversZLayer'], // override popover z layer
data () {
return {
hidden: true,
@@ -168,6 +169,9 @@ const Popover = {
top: `${Math.round(translateY)}px`
}
+ if (this.popoversZLayer) {
+ this.styles['--ZI_popover_override'] = `var(--ZI_${this.popoversZLayer}_popovers)`
+ }
if (parentScreenBox) {
this.styles.maxWidth = `${Math.round(parentScreenBox.width)}px`
}