diff --git a/src/Forms/SelectionGroup.php b/src/Forms/SelectionGroup.php index 998e4f254..81a5c309f 100644 --- a/src/Forms/SelectionGroup.php +++ b/src/Forms/SelectionGroup.php @@ -101,17 +101,9 @@ class SelectionGroup extends CompositeField 'name' => $this->name, 'value' => $item->getValue(), 'checked' => $checked, - 'aria-labelledby' => "title-{$itemID}", ) )), - "RadioLabel" => DBField::create_field('HTMLFragment', FormField::create_tag( - 'label', - array( - 'id' => "title-{$itemID}", - 'for' => $itemID - ), - $item->getTitle() - )), + "RadioLabel" => $item->getTitle(), "Selected" => $firstSelected, ); $newItems[] = $item->customise($extra); diff --git a/templates/SilverStripe/Forms/SelectionGroup.ss b/templates/SilverStripe/Forms/SelectionGroup.ss index 8201cf936..8147c9a62 100644 --- a/templates/SilverStripe/Forms/SelectionGroup.ss +++ b/templates/SilverStripe/Forms/SelectionGroup.ss @@ -13,7 +13,7 @@