Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular material sidenav hover

I am trying to build an Angular Sidebar. Currently, it is having a toggle effect which means, when we click it, it will collapse. If it is collapsed, it will expand. Now I am trying to expand only the item which gets hover. I need some help with this.

StackBlitz demo

enter image description here

like image 506
Leela Vathi Avatar asked Jan 22 '26 06:01

Leela Vathi


1 Answers

Here is the solution:

I have made changes in your left-menu-component.html for that hover effect as you asked for.here is the link: https://stackblitz.com/edit/angular-w1b2ho?file=src%2Fapp%2Fcomponents%2Fleft-menu%2Fleft-menu.component.html

like image 154
Ishan Shah Avatar answered Jan 25 '26 00:01

Ishan Shah