Im using bootstrap-duallistbox
Currently, when users click an option from either box, the option background turns blue for a second then the option is moved to the other select box.
I would like to change the color from blue to something else.
What state is this exactly? CSS applied to option:active
, option:hover
, option:focus
do not work to select this state and change the color.
I thought this might work, but it also failed.
select:-internal-list-box option:checked {
color: #333 !important;
background-color: #FFC894 !important;
}
Nor did:
select:-internal-list-box option:selected {
color: #333 !important;
background-color: #FFC894 !important;
}
select:-internal-list-box:focus option:checked {
color: #333 !important;
background-color: #FFC894 !important;
}
select:-internal-list-box:focus option:selected {
color: #333 !important;
background-color: #FFC894 !important;
}
select:-internal-list-box:focus option::selection {
color: #333 !important;
background-color: #FFC894 !important;
}
.bootstrap-duallistbox-container:focus select option::selection {
background: #ffb7b7 !important;
}
How can I change the background color displayed when an option is clicked?