If I use:
vaadin-menu-bar-button {
background-color: red;
}
then all my menubar items are red which is great. However if I want to style just one menubar item to stand out such as:
MenuItem titleMenuItem = menuBar.addItem(special, click → doSomething());
titleMenuItem.addClassName(“special”);
vaadin-menu-bar-button.special {
background-color: yellow;
}
it doesn’t work color that one menubar item to yellow. I tried overlay and so on but no luck. I even tried to add ::part(label) to test if I needed to be more specific and I had the same issue.
All that to ask how can I change the style of just one menu item to be different then the others?