pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.74k stars 834 forks source link

Hover style/effect without using a class #553

Closed jaxkookie closed 2 years ago

jaxkookie commented 2 years ago

is there a way to apply a hover color for an element without the use of a class "ms-bgcolor --hover?" The only inline way I see is through the use of javascript onMouseOver/onMouseOut. I do not want to start creating custom classes, but I do want to apply custom colors on hover.

my goal is to control the hover color from a column value, the same as the bgColor and font color.

thechriskent commented 2 years ago

Unfortunately, no. The --hover classes are the only method we have for affecting hover styles when it comes to out of the box formatting.