Add styling for checked options in select boxes

This commit is contained in:
Samuel Mannehed 2025-01-13 01:32:57 +01:00
parent 6c1e7bc507
commit 3a5dd22603
1 changed files with 6 additions and 0 deletions

View File

@ -515,6 +515,9 @@ select:disabled {
var(--select-arrow),
var(--grey-background);
}
/* Note that styling for <option> doesn't work in all browsers
since its often drawn directly by the OS. We are generally very
limited in what we can change here. */
option {
/* Prevent Chrome from inheriting background-color from the <select> */
background-color: white;
@ -522,3 +525,6 @@ option {
font-weight: normal;
background-image: var(--button-activation-overlay);
}
option:checked {
background-color: var(--novnc-lightgrey);
}