Even with spacing disabled, there is still spacing between the components.
I’m experiencing the same in my application; I have a VerticalLayout with setSpacing(false), containing other layouts, and I get spacing between the child layouts.
Btw, I tried to check if the same was true with HorizontalLayout, but there the spacing examples didn’t display.
And I guess the reason this isn’t visible with the Horizontal Layout is that the default margin of 0.25rem is applied only to the top and bottom of the button, the left and right margins are 0.
Doh! I tricked myself, both because I was looking for a simple example to demonstrate my real issue, and because when I click on it, the browser devtool selected the internal <div class=“vaadin-button-container”>, which has no margins. My mistake.
My issue looked the same, but had a different cause.
After a bit more digging I found it. Completely my own fault. At some point added this to my css: