diff -u b/core/modules/views/templates/views-view-table.html.twig b/core/modules/views/templates/views-view-table.html.twig --- b/core/modules/views/templates/views-view-table.html.twig +++ b/core/modules/views/templates/views-view-table.html.twig @@ -20,7 +20,7 @@ * - columns: Row column items. Columns are keyed by column number. * - attributes: HTML classes to apply to each column. * - content: The column content. - * - responsive: + * - responsive: A flag indicating whether table is responsive. * - sticky: A flag indicating whether table header is sticky. * * @see template_preprocess_views_view_table() diff -u b/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc --- b/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -48,7 +48,6 @@ // identifier for each view. This identifier is written to both // drupalSettings and the DIV wrapper. $variables['dom_id'] = $view->dom_id; - $variables['attributes']['class'][] = 'view-dom-id-' . $variables['dom_id']; } } @@ -56,6 +55,7 @@ // identifier for each view. This identifier is written to both // drupalSettings and the DIV wrapper. $variables['dom_id'] = $view->dom_id; + $variables['attributes']['class'][] = 'view-dom-id-' . $variables['dom_id']; } }