Skip to content

A free open source IT asset/license management system

CSS multiselect: Fixed #18943 - use lighter background

snipeed61ff1797a9
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index c22befda9d..ee1a266d45 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -233,6 +233,18 @@
border-color: hsl(from var(--main-theme-color) h s calc(l - 5)) !important;
}
+ /**
+ Safari ignores option[selected] styling on plain <select multiple> until
+ the user interacts with the list, so pre-selected options render with
+ the browser's default light highlight. Force a lighter background on the
+ whole select in dark mode so pre-selected items stay readable.
+ */
+ [data-theme="dark"] select[multiple],
+ [data-theme="dark"] select[multiple] option {
+ background-color: #d2d6de !important;
+ color: #373636 !important;
+ }
+
/**
Multiselect maybe?
*/