Unverified Commit 5bc445ba authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3203745 by darienmh, Abhijith S, chetanbharambe: Claro theme is...

Issue #3203745 by darienmh, Abhijith S, chetanbharambe: Claro theme is incompatible with the Themable Forms module

(cherry picked from commit 2a03fb2c)
parent 28327b11
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -747,6 +747,7 @@ function claro_form_system_modules_alter(&$form, FormStateInterface $form_state)
      foreach (Element::children($form['modules'][$key]) as $module_key) {
        if (isset($form['modules'][$key][$module_key]['links'])) {
          foreach ($form['modules'][$key][$module_key]['links'] as $link_key => &$link) {
            if (array_key_exists($link_key, $link_key_to_action_link_type)) {
              $action_link_type = $link_key_to_action_link_type[$link_key];
              $link['#options']['attributes']['class'][] = 'action-link';
              $link['#options']['attributes']['class'][] = 'action-link--small';
@@ -757,6 +758,7 @@ function claro_form_system_modules_alter(&$form, FormStateInterface $form_state)
      }
    }
  }
}

/**
 * Implements hook_preprocess_form_element().