PDA

View Full Version : change combo box selection color - using SASS



sshres
6 Aug 2012, 9:57 PM
I am working with themes in my application. I am having trouble changing the combo box selection color from the default gray to another color. Can somebody help me with the variable that has to be set in my scss file to override this?

Thanks.

sword-it
6 Aug 2012, 10:29 PM
Hello sshres,
To change the selected item color of the combobox view, you just need to override the css class, given below:
// 'x-boundlist-selected' - this is the class that will be add to the view item when you select that.


<style type="text/css">
.x-boundlist-selected {
background: #00F00F; // define your own color
border-color: #8EABE4;
}
</style>

evant
6 Aug 2012, 10:35 PM
.#{$prefix}boundlist-selected {
background: $boundlist-item-selected-background-color;
border-color: $boundlist-item-selected-border-color;
}

sshres
7 Aug 2012, 9:08 PM
Thanks a lot...this works!