From 883ebde06f96fcc655ba1da20d59f1b73a5bae42 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Wed, 10 Apr 2024 12:31:07 +0200 Subject: [PATCH] MDL-81307 theme: Fix behat failures with classic and sticky footer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored-by: Mikel Martín Corrales --- theme/boost/scss/moodle/debug.scss | 5 ++++- theme/boost/style/moodle.css | 6 +++++- theme/classic/style/moodle.css | 6 +++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/theme/boost/scss/moodle/debug.scss b/theme/boost/scss/moodle/debug.scss index 6f6497b7181..3485e962ff5 100644 --- a/theme/boost/scss/moodle/debug.scss +++ b/theme/boost/scss/moodle/debug.scss @@ -10,8 +10,11 @@ body.behat-site { // Sticky footer can overlap with elements so we keep it relative for behat. &.hasstickyfooter .stickyfooter, .stickyfooter { - position: relative; + position: inherit; z-index: inherit; + .bulkcancel { + position: inherit; + } } // We need more spacing in action menus so behat does not click on the wrong menu item. diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index e5d4f3e2bbc..fadd476bc2e 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -35403,9 +35403,13 @@ body.behat-site .fixed-top { } body.behat-site.hasstickyfooter .stickyfooter, body.behat-site .stickyfooter { - position: relative; + position: inherit; z-index: inherit; } +body.behat-site.hasstickyfooter .stickyfooter .bulkcancel, +body.behat-site .stickyfooter .bulkcancel { + position: inherit; +} body.behat-site .dropdown-item { margin-top: 4px !important; /* stylelint-disable declaration-no-important */ } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index a2f28a377cc..e85943bb947 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -35337,9 +35337,13 @@ body.behat-site .fixed-top { } body.behat-site.hasstickyfooter .stickyfooter, body.behat-site .stickyfooter { - position: relative; + position: inherit; z-index: inherit; } +body.behat-site.hasstickyfooter .stickyfooter .bulkcancel, +body.behat-site .stickyfooter .bulkcancel { + position: inherit; +} body.behat-site .dropdown-item { margin-top: 4px !important; /* stylelint-disable declaration-no-important */ }