Hi! Is there a way to add styles to a FormLayout row? I know I can add styles to the component in the row, but this class name is not propagated to the row holding the component.
Example of output that I would want. I would like to get the class “row-amount” in addition to what I am already getting (amount v-textfield-amount)
Unfortunately there isn’t. You could create an enhancement ticket about it, but I suspect it would be included in the next minor update (v 7.7.0) as it changes behaviour and might break some themes. Also, 7.7 doesn’t have any sort of schedule yet so don’t know when it would be available.
You could try to simulate the FormLayout with e.g. a GridLayout. IIRC those cells do get the style names, but you would have to add your own Labels as captions.