Unverified Commit cf8b8a45 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3105583 by Hardik_Patel_12, kostyashupenko, hash6, siddhant.bhosale,...

Issue #3105583 by Hardik_Patel_12, kostyashupenko, hash6, siddhant.bhosale, lauriii, andypost: Move HTML classes from claro_preprocess_radios to a template
parent 0c5219eb
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -878,13 +878,6 @@ function claro_preprocess_form_element__password(&$variables) {
  }
}

/**
 * Implements template_preprocess_HOOK() for radios.
 */
function claro_preprocess_radios(&$variables) {
  $variables['attributes']['class'][] = 'form-boolean-group';
}

/**
 * Implements template_preprocess_HOOK() for filter_tips.
 */
+13 −0
Original line number Diff line number Diff line
{#
/**
 * @file
 * Theme override for a 'radios' #type form element.
 *
 * Available variables
 * - attributes: A list of HTML attributes for the wrapper element.
 * - children: The rendered radios.
 *
 * @see template_preprocess_radios()
 */
#}
<div{{ attributes.addClass('form-radios','form-boolean-group') }}>{{ children }}</div>