From d7ebcac861f5feb8fcd0e52a48c8b6b8a4bbd4fd Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Thu, 6 May 2021 09:28:21 +0200 Subject: [PATCH] MDL-71550 theme_boost: improve dropdown hover styles --- theme/boost/scss/moodle/core.scss | 3 ++- theme/boost/style/moodle.css | 3 ++- theme/classic/style/moodle.css | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index ed2e87fa5e0..936040cfe23 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -2347,7 +2347,8 @@ $footer-link-color: $bg-inverse-link-color !default; &:focus, &:focus-within { outline: 0; - background-color: $dropdown-link-hover-bg; + background-color: $dropdown-link-active-bg; + color: $dropdown-link-active-color; a { color: $dropdown-link-active-color; } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index ede6418a9b8..9fa1f9d45ac 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -11530,7 +11530,8 @@ ul { .dropdown-item:active, .dropdown-item:hover, .dropdown-item:focus, .dropdown-item:focus-within { outline: 0; - background-color: #0f6fc5; } + background-color: #0f6fc5; + color: #fff; } .dropdown-item:active a, .dropdown-item:hover a, .dropdown-item:focus a, .dropdown-item:focus-within a { color: #fff; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index c72cfb2a350..5db4aa50b01 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -11740,7 +11740,8 @@ ul { .dropdown-item:active, .dropdown-item:hover, .dropdown-item:focus, .dropdown-item:focus-within { outline: 0; - background-color: #0f6fc5; } + background-color: #0f6fc5; + color: #fff; } .dropdown-item:active a, .dropdown-item:hover a, .dropdown-item:focus a, .dropdown-item:focus-within a { color: #fff; }