From: Christian Korber Date: Wed, 26 Feb 2025 20:19:13 +0000 (+0100) Subject: themes/luci-theme-material: change dropdown text to black X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4c692b88df57e3999b8929bfd243ef99dc735d89;p=openwrt-luci.git themes/luci-theme-material: change dropdown text to black This commit enforces black text in dropdown[open] to highlight it against white background. Signed-off-by: Christian Korber --- diff --git a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css index 8624eb64a0..ad29f36911 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -1590,6 +1590,10 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { color: var(--white-color); } +.cbi-dropdown[open] > ul.dropdown > li[tabindex] { + color: var(--black-color) !important; +} + .cbi-dropdown > ul > li[display], .cbi-dropdown[open] > ul.preview, .cbi-dropdown[open] > ul.dropdown > li, @@ -1622,6 +1626,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { .cbi-dropdown[open] > ul.dropdown > li[selected] { background: #b0d0f0; + color: var(--black-color); } .cbi-dropdown[open] > ul.dropdown > li.focus, @@ -1632,6 +1637,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child { .cbi-dropdown[open] > ul.dropdown > li:last-child { margin-bottom: 0; border-bottom: 0; + color: var(--black-color); } .cbi-dropdown[open] > ul.dropdown > li[unselectable] {