diff --git a/core/themes/claro/claro.theme b/core/themes/claro/claro.theme index 859ff0c042..b8e7fb32c7 100644 --- a/core/themes/claro/claro.theme +++ b/core/themes/claro/claro.theme @@ -826,13 +826,8 @@ function claro_preprocess_field_multiple_value_form(&$variables) { $variables['disabled'] = !empty($variables['element']['#disabled']); if ($variables['multiple']) { - // Add an additional CSS class for the field label table cell. - // - // If the field is multiple, we don't have to check the existence of the - // table header cell. - // Using array_key_first() for addressing the first header cell would be - // more elegant here, but we can rely on the related theme.inc preprocess. - // + // Add an additional CSS class to the field label table cell. The table + // header cell exists always in a multiple value field. // @see template_preprocess_field_multiple_value_form(). $variables['table']['#header'][0]['data']['#attributes']['class'][] = 'form-item__label'; $variables['table']['#header'][0]['data']['#attributes']['class'][] = 'form-item__label--multiple-value-form';