I’m using vaadin-combo-box#4.2.1 (polymer#2.7.0) and would like to remove the 8px margin bottom for its vaadin-text-field (since it makes the field look too ‘high’ in my app’s layout.
I’ve looked through the elements’ source, but can’t see any custom style to override this style. Can someone enlighten me?
Margin should not have any effect. Note, that a VerticalLayout does add margins to the child elements when you have setSpacing(true). But that would be applied on the <vaadin-combo-box> element, not the internal text-field of it.
Removing the margin certainly does have an effect, on the version I’m using anyway.
The margin is set in vaadin-combo-box, not in vaadin-text-field. I’m using a horizontal layout.
Perhaps I’ve been asking the wrong thing, and it has mislead you. I really want to change what style vaadin-combo-box is applying to its vaadin-text-field.
What I’m asking is how to make this happen without forking these elements? Someone alluded to a method of changing the theme with a theme module…which I looked at to try to figure out how that is done, but I can’t see any guides/etc on how that all works. Ideally, I would have liked to have used the Polymer techniques, and override it using a custom property or a mixin.
What I’m asking is how to make this happen without forking these elements? Someone alluded to a method of changing the theme with a theme module…which I looked at to try to figure out how that is done, but I can’t see any guides/etc on how that all works. Ideally, I would have liked to have used the Polymer techniques, and override it using a custom property or a mixin.
Thanks very much for that. I can now free myself of my fork
I thought I’d tried something like that, but I was obviously missing /something/…looking above, it seems I was close, but put the mixin inside my element, rather than outside, up by the links.
Anyway, all good
Thanks again - I owe you one…if only there were still Polymer Summits, since I would buy you a drink