I have a custom form and in previous versions of SS if i added something like this:
Textfield::create('MyField', 'MyField')->addExtraClass('small-field')
It would add the extra class to both the input and the div holding it. Now it just adds it to the input, so I get something like:
<div class="fieldgroup-field odd">
<div class="fieldholder-small">
<label class="fieldholder-small-label" for="Form_MyForm_MyField">My Field</label>
<input type="text" name="MyField" class="text small-field" id="Form_MyForm_MyField" >
</div>
</div>
How do I get it to add the class to the first div (fieldgroup-field)?
Thanks