Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

md-color set hover color

I am working with Angular Material 1.* components and I am pretty happy about it.

I would like to use theme colors to set hover state background like I do for normal md-colors background, but can't find any documentation on how to set color for hover state.

Does anyone know is it possible and how to do it?

like image 381
Ricardas Avatar asked Sep 20 '16 06:09

Ricardas


1 Answers

I created a work-around by setting the background color with md-colors, and hiding it behind another element. The hover state then makes the top layer transparent, so it appears to be a dynamically set hover state! See this answer here:

https://stackoverflow.com/a/46650109/4881971

like image 53
Leon Avatar answered Oct 15 '22 21:10

Leon