Form builder uses label tags for inputs and textareas, but uses span tags with class 'label' for selects, when type is "enum". If the quantity of options is small, I suppose these are radios, but when a select, there can be noticeable style differences?
Comments
if the field is set as type "enum" the output for "render_divs" is:
<div id="bf-salutation"> <span class="label">Salutation</span> <span class="field">...select goes here...</span> </div>
change the field to "select" and the output becomes:
<div id="bf-salutation"> <span class="label"> <label id="label_salutation" for="salutation">Salutation</label> </span> <span class="field">...select goes here...</span> </div>
the "select" config writes a label tag, but enum doesn't. Depending on one's CSS, this results in inconsistent display, when in fact the intention (syntactically) is the same.
I appreciate that enum has an auto feature that writes a select or radios depending on the number of options, which complicates the rendering. Maybe it's not that serious to worry about.