Override CSS of addons

Hello!

I’m trying to change the cs of some addons to fit my application but cannot get it to work. Simply overriding the styles doesnt work. Does anyone have an idea how to do that?

Cheers!

Overriding them should work unless they have !important. Note that an overriding rule must have at least as specific selector as the rule to be overridden. For example, to override “.foo .bar {}” the selector must be at least as specific, just “.bar {}” won’t do it. There could also be some other similar problem.

I’m also trying to override CSS of addon (ContextMenu addon) without success. With Vaadin 6 I managed to get it working by adding div in front of addon selector, e.g. div.v-ctxmenu. However this approach seems to not work with Vaadin 7. Any idea how to get it working?

I got it working. I’m using sass and it didn’t work, because I had included my definitions inside mixin.