FormField - add option to add css classes to labels easily

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’);

This might be worth adding to the thread here: Separate classes for form fields and their holders.

I don’t have particularly strong feelings about this one, but it would be fairly trivial to implement at the same time as those changes.