I find I’m having to add a $field.addExtraClass(‘formname’); in my php code then .formname label as a css style to target the label tag. Often there are utility classes available that would be easier to add directly to the label tag.
What are peoples thoughts to adding something like FormField::addExtraLabelClass(‘u-hidden’);