luci-theme-bootstrap: add dropdown option hover styles
authorJo-Philipp Wich <jo@mein.io>
Sun, 18 Feb 2024 22:22:58 +0000 (23:22 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:27:58 +0000 (01:27 +0100)
Subsequent commits will drop the JS based mouse following focus behavior,
so add appropriate replacement CSS hover styles.

Ref: #6903
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f57514d63ca23ec3020a5605a039ac0b228e994d)

themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css

index 3afcc6ad99b54979fc3182abd69c3280aa3251d9..46cf475529bbd4344a6cc9a3454945ff05f96694 100644 (file)
@@ -1716,12 +1716,14 @@ body.modal-overlay-active #modal_overlay {
        color: var(--on-primary-color);
 }
 
-.cbi-dropdown[open] > ul.dropdown > li.focus {
+.cbi-dropdown[open] > ul.dropdown > li.focus,
+.cbi-dropdown[open] > ul.dropdown > li:hover {
        background: var(--primary-color-low);
        color: var(--on-primary-color);
 }
 
-.cbi-dropdown[open] > ul.dropdown > li[selected].focus {
+.cbi-dropdown[open] > ul.dropdown > li[selected].focus,
+.cbi-dropdown[open] > ul.dropdown > li[selected]:hover {
        background: linear-gradient(90deg, var(--primary-color-medium) 50%, var(--primary-color-low));
 }