Hi,
How can I set custom background to items in checked state in menubar?
I have MenuBar without any submenus, with items set to checked on click:
for(MenuItem menuItem: menuBar.getItems()) {
menuItem.setChecked(false);
}
selectedItem.setChecked(true);
I want to set custom backgroud color for checked item. I tried this:
.v-menubar-menuitem-checked {
background-color: #4ba5ff;
background-image: linear-gradient(to bottom, #51acff 2%, #4296f4 98%);
}
In firebug it seems that background-color is set, background-image is not, and both are overwritten somewhere.
Thanks!