- Issue created by @travisc
- π¨πSwitzerland saschaeggi Zurich
I'll move this to the webform module, Cheers βοΈ
- πΊπΈUnited States jrockowitz Brooklyn, NY
Now, I am moving this to the Webform Analysis module's issue queue.
- πΊπΈUnited States mikelutz Michigan, USA
This is because gin wraps an extra div around tables in its table.html.twig template. There's a few solutions here, but we might need to provide out own table template for stability across admin themes. My immediate workaround is to put the following hook in a custom module in my project:
/** * Implements hook_webform_analysis_component(). */ function my_module_preprocess_webform_analysis_component(&$variables) { $variables['data']['#attributes']['class'][] = 'field-multiple-table'; }
For whatever reason, gin's hook_theme_suggestions switches to a simple table template with no wrapper if the 'field-multiple-table' class is in the render array, so the above code surprisingly works just fine in a pinch.