I’m having trouble to style Drupal 9 facets checkbox in checked state. I have tried to override the theme by theme_preprocess_checkboxes with no effect.
here is my code :
 function mytheme_preprocess_checkboxes($variables) {    $element = $variables['element'];   $element['#attributes']['type'] = 'checkbox';   element_set_attributes($element, array('id', 'name', '#return_value' => 'value'));    // Unchecked checkbox has #value of integer 0.   if (!empty($element['#checked'])) {       $element['#attributes']['checked'] = 'checked';   }   _form_set_class($element, array('form-checkbox'));    return '<input' . drupal_attributes($element['#attributes']) . ' /><span></span>'; } 
I guess i’m not getting facets checkboxes with it. Any suggestions how do i style facets and override their templates.
I’m using bootstrap 3 subtheme on drupal 9