I have a problem with valo (only with that theme), when i used Valo theme my menubar dont work. I trace the problem to the css (.v-ddwrapper-over:before) with the z-index:10 but in browser it looks like overwriten.
The menubar its inside a VerticalLayout, on the top (like a “windows menu”)
Does anyone had the same problem? any tip?
}
[/code]I try in IE, Chrome and it doesnt work with valo theme, but it works with any other theme. z-index:10 looks overwritten but i cant notice where.
How to get rid of this white block from the valo menu? I am attaching an image for clarification. I just want that user icon with drop down menu… but I don’t want the rectangular white block.
Thanks for your comment. I have two simple questions for you…
a) How do you change the color of the menu items… for example, if have menu like "
File ", "
Edit " and "
View " etc… and the color is let’s say pink … but how do I change it to white ? and also change the font to let’s say, Calibri Regular.
b) If I put the valo menu items and the icon seperately in the menu item than how do I arrange horizontally ? I hope you understand what I mean here… I mean, like the top-menu bar of Vaadin site.
I’d probably recommend setting the background color of the v-menubar-popup element.
.v-menubar-popup {
background-color: white;
}
Or if you want, you can also set it for v-menubar-menuitem, but I wouldn’t recommend that, as there is padding on the v-menubar-popup element by default.
How do you create horizontal-sub menu in Vaadin? I know I can easily create a simple drop down menu, but I am struggling to create a
horizontal sub-menu in Valo.
Thanks for your answer. Unfortunately, it doesn’t work. The menu color is not white with the above css … I also tried setting it for v-menubar-menuitem… even that doesn’t seem to work.
Thanks for your answer. Is there any other way … I can change the menu text color without deleting the styles.css? I put in .scss following line:
$v-focus-color: #fff;
and magically the menu text is working nicely with white text… however, when I remove this … it changes to dark blue. Is there any other way… I can keep the menu text white.
If you inspect the DOM structure of the menu bar and its items, you can check where the items get their color from. Then simply override that in your theme.