Autocomplete background is transparent
DBinaghi opened this issue · 3 comments
DBinaghi commented
ebellempire commented
I noticed this happening in my plugin too. Not sure what's going on here. Maybe the default jquery-ui styles aren't getting loaded?
Anyway, if anyone is here looking for a solution for their plugins, I just did this to add a background color.
// ...
.autocomplete( "instance" )._renderItem = function( ul, item ) {
ul.css('background', '#fafafa');
return jQuery( '<li>' )
.append( "<span>" + item.label + "</span>" )
.appendTo( ul );
};
I also added some basic styles for the selected item...
.ui-state-active,
.ui-state-hover,
.ui-state-focus,
.ui-menu-item:hover,
.ui-menu-item:focus,
.ui-menu-item:active{
font-weight: 800 !important;
// ...
}
Good enough for now, but maybe not ideal.
DBinaghi commented
I can confirm the issue has been solved with last css file change.
Good job.