Skip to content
Snippets Groups Projects
Commit 23cd78d5 authored by David Cameron's avatar David Cameron Committed by Merlin Axel Rutz
Browse files

Issue #3311501 by dcam, edmund.dunn, geek-merlin: Add label to weight select...

Issue #3311501 by dcam, edmund.dunn, geek-merlin: Add label to weight select field for accessibility
parent 19b69bab
No related branches found
No related tags found
1 merge request!97Converted the patch into a MR
Pipeline #73123 canceled
...@@ -430,6 +430,8 @@ class InlineEntityFormComplex extends InlineEntityFormBase implements ContainerF ...@@ -430,6 +430,8 @@ class InlineEntityFormComplex extends InlineEntityFormBase implements ContainerF
$row['title'] = []; $row['title'] = [];
$row['delta'] = [ $row['delta'] = [
'#type' => 'weight', '#type' => 'weight',
'#title' => $this->t('Weight for row @number', ['@number' => $key + 1]),
'#title_display' => 'invisible',
'#delta' => $weight_delta, '#delta' => $weight_delta,
'#default_value' => $value['weight'], '#default_value' => $value['weight'],
'#attributes' => ['class' => ['ief-entity-delta']], '#attributes' => ['class' => ['ief-entity-delta']],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment