Skip to content
Snippets Groups Projects
Commit b6014a57 authored by Shelane French's avatar Shelane French
Browse files

Issue #3324207 by shelane, demon326: Row class added to all columns

parent d04f8064
No related branches found
No related tags found
No related merge requests found
Pipeline #179374 passed with warnings
......@@ -195,15 +195,13 @@ function template_preprocess_views_bootstrap_grid(array &$vars): void {
$view = $vars['view'];
$rows = $vars['rows'];
$vars['id'] = ViewsBootstrap::getUniqueId($view);
$vars['attributes']['class'][] = 'grid';
$vars['attributes'] = new Attribute(['class' => 'grid']);
$options = $view->style_plugin->options;
$vars['row_attributes'] = new Attribute();
if ($options['grid_class']) {
$grid_class = explode(' ', $options['grid_class']);
$grid_classes = array_map([Html::class, 'cleanCssIdentifier'], array_filter($grid_class));
$vars['row_attributes']->addClass($grid_classes);
$vars['attributes']->addClass($grid_classes);
}
$col_classes = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment