Skip to content
Snippets Groups Projects
Commit 0f131160 authored by Guillaume (gdi)'s avatar Guillaume (gdi)
Browse files

[FIX] website: allow to have all pages popups with a slide hover footer


Before this commit, the popup snippet was not displayed correctly if it
had to be displayed on all pages and the footer was a slide hover
footer. This commit just permits disabling the footer effect while the
popup is displayed.

Steps to reproduce the bug:
- Drop some block on a page
- Set the the footer Slideout Effect to "slide hover"
- Add a popup and set it to be displayed on all pages
- Save

=> The page is blocked when the popup appears.

opw-2971181

X-original-commit: bae2c6e9
Part-of: odoo/odoo#107067
Co-authored-by: default avatarRomain Derie <rde@odoo.com>
Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
parent f1ad538b
No related branches found
No related tags found
No related merge requests found
......@@ -1304,7 +1304,21 @@ header {
@if index(('slideout_slide_hover', 'slideout_shadow'), o-website-value('footer-effect')) {
@include media-breakpoint-up(lg) {
#wrapwrap.o_footer_effect_enable {
// This effect is disabled when a modal is opened. This is the easiest
// and probably most stable solution for this problem:
// - Add a popup in your page and select it to be for "All pages"
// => In that case it ends up in the footer of your page
// - Enable the "Slide Hover" effect for your footer
//
// => In that case, when the popup opens, it is not visible because of
// the footer z-index ("Slide Hover" effect) and it actually also
// prevents the user to scroll.
//
// TODO in master, we may want to put such popups elsewhere than in the
// footer. When the footer is hidden, this is also a problem: the popup
// for all pages cannot be visible ever. This is considered a limitation
// in stable versions though.
body:not(.modal-open) #wrapwrap.o_footer_effect_enable {
> main {
@if o-website-value('layout') == 'full' {
// Ensure a transparent snippet at the end of the content
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment