Menu Item - show which one is selected with Material v2 Theme?

1 Answer 78 Views
Menu
Zack
Top achievements
Rank 1
Zack asked on 17 Sep 2021, 03:18 PM

Hi,

I am using an AppBar and have a menu added to that which works just fine.

The only issue is knowing which item on the menu is selected, is there any way to do this without changing loads of the theme css?

Ideally I want the usual bottom border turned to a solid colour effect when selected.

Thanks,

Zack

 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 22 Sep 2021, 06:00 AM

Hi Zack,

Internally we add the `menu_mn_active` class to clicked items, thus, you could add the desired selected state with the following line of css:

    #menu_mn_active{
      border-bottom: 1px solid black;      
    }

I hope this helps.

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Menu
Asked by
Zack
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or