Skip to content

Commit 3ff476c

Browse files
PB-265: Video background for Banner
- fix tinymce zindex overlapping sibling banner
1 parent 787cacd commit 3ff476c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/banner/_default.less

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,20 @@
120120
}
121121

122122
.video-overlay {
123-
z-index: 0;
123+
z-index: auto;
124+
}
125+
126+
&.jarallax {
127+
position: unset!important;
128+
}
129+
130+
[id*='jarallax-container'] {
131+
z-index: auto!important;
132+
133+
> iframe,
134+
> video {
135+
z-index: auto!important;
136+
}
124137
}
125138
}
126139

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/banner/preview.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/banner/preview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export default class Preview extends BasePreview {
114114
speed: 1,
115115
videoPlayOnlyVisible: (this.contentType.dataStore.get("video_play_only_visible") as string) === "true",
116116
videoLazyLoading: (this.contentType.dataStore.get("video_lazy_load") as string) === "true",
117+
onInit() {
118+
$(this.image.$container).prependTo($(this.image.$container).parent());
119+
},
117120
},
118121
);
119122
// @ts-ignore

0 commit comments

Comments
 (0)