And if so, how do I stop them from being added?
I'm adjusting a web app to be 508 compliant, and it seems as though (at least for radio buttons and checkboxes) that an 'aria-labelledby' attribute is being added automatically. Is there a way for me to stop this from happening, maybe altering the config, or using a custom wrapper? I've looked through the documentation, and couldn't find much. Here is the input (in HAML) that I start out with:
= f.input :is_round_trip, as: :radio_buttons, item_wrapper_tag: nil, label: t(:trip), collection: [[t(:round_trip), 1], [t(:one_way), 0]], checked: (@trip_proxy.is_round_trip ? "1" : "0")
And this is what gets compiled:
<label for="trip_proxy_is_round_trip_1" name="trip_proxy[is_round_trip]">
<input aria-labelledby="is_round_trip_label" checked="checked" class="radio_buttons optional" id="trip_proxy_is_round_trip_1" name="trip_proxy[is_round_trip]" type="radio" value="1">Round trip
</label>