Skip to content
Snippets Groups Projects
Unverified Commit 5a9de596 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3105580 by Hardik_Patel_12, siddhant.bhosale: Move HTML classes from...

Issue #3105580 by Hardik_Patel_12, siddhant.bhosale: Move HTML classes from claro_preprocess_checkboxes to a template
parent 73b8d101
No related branches found
No related tags found
No related merge requests found
......@@ -861,13 +861,6 @@ function claro_preprocess_form_element__password(&$variables) {
}
}
/**
* Implements template_preprocess_HOOK() for checkboxes.
*/
function claro_preprocess_checkboxes(&$variables) {
$variables['attributes']['class'][] = 'form-boolean-group';
}
/**
* Implements template_preprocess_HOOK() for radios.
*/
......
{#
/**
* @file
* Theme override for a 'checkboxes' #type form element.
*
* Available variables
* - attributes: A list of HTML attributes for the wrapper element.
* - children: The rendered checkboxes.
*
* @see template_preprocess_checkboxes()
*/
@todo: remove this file once https://www.drupal.org/node/1819284 is resolved.
This is identical to core/modules/system/templates/container.html.twig
#}
<div{{ attributes.addClass('form-checkboxes','form-boolean-group') }}>{{ children }}</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment