Hi I’m creating a webapp with Vaadin and I’m also localizing my app into french and italian. Now my problem is that depending on the current language my texts inside the buttons are longer or shorter. If the text gets too long I want to break it.
I already tried
Note, I have not tested this myself yet, so I do not know how the button behaves with your proposed styles, but the pattern is correct. So if it is possible, this is the way.
Many thanks! It worked with the shadow DOM. For anyone wondering maybe:
I also got rid of the “width: 125px” and “height: auto”. Those are not necessary. But in the java code I added to the buttons “.setHeight(“auto”)”. Now the buttons are displayed normally (flex) and when they reach their minimum width they’re wrapping the words now.