diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme index cc77e9f..99a6bae 100644 --- a/core/themes/bartik/bartik.theme +++ b/core/themes/bartik/bartik.theme @@ -123,10 +123,9 @@ function bartik_menu_tree($variables) { function bartik_field__taxonomy_term_reference($variables) { $output = ''; - // Render the label, if it's not hidden. - if (!$variables['label_hidden']) { - $output .= '

' . $variables['label'] . ':

'; - } + // Render the label either as a visible list or make it invisible for accessibility. + $label_class = (!$variables['label_hidden']) ? 'field-label' : 'element-invisible'; + $output .= '

' . $variables['label'] . ':

'; // Render the items. $output .= ($variables['element']['#label_display'] == 'inline') ? '