Unverified Commit cf8b8a45 authored by lauriii's avatar lauriii
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
......@@ -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.
*/
......
{#
/**
* @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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment