diff --git a/claro.theme b/claro.theme index 80ca173..c63a602 100644 --- a/claro.theme +++ b/claro.theme @@ -276,7 +276,7 @@ function claro_element_info_alter(&$type) { } /** - * Prerender callback for Vertical Tabs element + * Prerender callback for Vertical Tabs element. */ function _claro_vertical_tabs_prerender($element) { // If the vertical tabs have a details group, add attributes to those details @@ -292,7 +292,7 @@ function _claro_vertical_tabs_prerender($element) { $last_group_with_child_key = NULL; $last_group_with_child_key_last_child_key = NULL; - foreach($group_keys as $group_key) { + foreach ($group_keys as $group_key) { $children_keys = Element::children($element['group']['#groups'][$group_key], TRUE); foreach ($children_keys as $child_key) { @@ -305,7 +305,7 @@ function _claro_vertical_tabs_prerender($element) { $element['group']['#groups'][$group_key][$child_key]['#vertical_tab_item'] = TRUE; if ($first_key) { - $element['group']['#groups'][$group_key][$child_key]['#attributes']['class'][] = 'vertical-tabs__item--first'; + $element['group']['#groups'][$group_key][$child_key]['#attributes']['class'][] = 'vertical-tabs__item--first'; $first_key = FALSE; }