I'm working on React project that's using Kendo. For Menu
component
import { Menu, MenuItem } from "@progress/kendo-layout-react-wrapper";
we cannot set className
to that control. So what is the right way to apply css for it?
I'm covering it by a with className the using nested css to set css for that like this:
tsx:
<div className="menu-container">
<Menu select={this.onSelect}>
</Menu>
</div>
css:
.menu-container{
.k-menu:not(.k-context-menu){
background-color: #2f4f90;
&:hover{
background-color: #2b6ebd;
}
}
}
Is there any better solution?