diff --git a/theme/boost/scss/moodle/primarynavigation.scss b/theme/boost/scss/moodle/primarynavigation.scss index ca33a3df217..df60fd2a728 100644 --- a/theme/boost/scss/moodle/primarynavigation.scss +++ b/theme/boost/scss/moodle/primarynavigation.scss @@ -13,9 +13,8 @@ .primary-navigation { display: none; } - .editmode-switch-form .custom-control-label { - font-size: 0; - color: transparent; + .editmode-switch-form label { + @include sr-only(); } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 1c983fabac0..4b065c1510d 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -21534,9 +21534,16 @@ div.editor_atto_toolbar button .icon { @media (max-width: 767.98px) { .primary-navigation { display: none; } - .editmode-switch-form .custom-control-label { - font-size: 0; - color: transparent; } } + .editmode-switch-form label { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; } } .editmode-switch-form .custom-control-input { width: 100%; diff --git a/theme/boost/templates/navbar.mustache b/theme/boost/templates/navbar.mustache index 6f374ea97d6..7bb2a6cc380 100644 --- a/theme/boost/templates/navbar.mustache +++ b/theme/boost/templates/navbar.mustache @@ -57,7 +57,7 @@ }}