Hi, I’m working on “Create a list view runtime UI” sample.
It works good, but when mouse “hover” or “select” a any list item, style of list view is change.
How can I disable/manipulate this style behaviour?
Thanks.
Hi @Mj-Kkaya !
You can control the background color (including hover and selected) using the following selectors:
/* "Normal" background color of the item */
.unity-collection-view__item
{
background-color: slategrey;
}
/* Background color of the item when it is being hovered */
.unity-collection-view__item:hover
{
background-color: gray;
}
/* Background color of the item when it is selected */
.unity-collection-view__item--selected
{
background-color: black;
}
Hope this helps!
This really what I looking for.
Thanks a lot!
1 Like