Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Using sprites and Menubar/Tabsheet
Hi all,
I would like to use sprites in some Vaadin components instead of images. For example in the Menubar, you can set a Resource that later will be transformed as an html <img> tag. I did a small test and created a big image with some icons and then overriding the Menubar and changing the behavior of the widget to replace the <img> tag that is generated with a <div> and set to this div a new style using the sprite that I want. The problem is that if want to add this “new” system to the Tabsheet I have to override again and again and then I will find another component that has to be overrided too and finally I will have to override all vaadin components :)
Another idea could be to replace the menubar item with an image (icon+text) but then if I want just to change the icon (or the language) I will have to create a new image…
Any ideas how to achieve this without overriding Vaadin components?
Thanks!