diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 1768a766743889332f1e7e2dba6e29ebb72d425f..a396619ee075d320b64a75397444ca14f3e09f16 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -3106,7 +3106,7 @@ function drupal_common_theme() { 'template' => 'breadcrumb', ), 'table' => array( - 'variables' => array('header' => NULL, 'rows' => NULL, 'attributes' => array(), 'caption' => NULL, 'colgroups' => array(), 'sticky' => TRUE, 'responsive' => TRUE, 'empty' => ''), + 'variables' => array('header' => NULL, 'rows' => NULL, 'attributes' => array(), 'caption' => NULL, 'colgroups' => array(), 'sticky' => FALSE, 'responsive' => TRUE, 'empty' => ''), ), 'tablesort_indicator' => array( 'variables' => array('style' => NULL), diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php index 0dbedd7c15d07c2125783fbd3382a3841c5f537b..1cea46aa05460b8982c5bd7afad45832ecb7b587 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php @@ -27,7 +27,7 @@ public static function getInfo() { function testThemeTableStickyHeaders() { $header = array('one', 'two', 'three'); $rows = array(array(1,2,3), array(4,5,6), array(7,8,9)); - $this->content = theme('table', array('header' => $header, 'rows' => $rows)); + $this->content = theme('table', array('header' => $header, 'rows' => $rows, 'sticky' => TRUE)); $js = drupal_add_js(); $this->assertTrue(isset($js['core/misc/tableheader.js']), 'tableheader.js was included when $sticky = TRUE.'); $this->assertRaw('sticky-enabled', 'Table has a class of sticky-enabled when $sticky = TRUE.'); diff --git a/core/modules/user/user.admin.inc b/core/modules/user/user.admin.inc index 9361864c5afa3fca5fab6202ebc41f90ac397b8f..a745bfaf4d465f44fbf59d85aa5c0ebe5cafd016 100644 --- a/core/modules/user/user.admin.inc +++ b/core/modules/user/user.admin.inc @@ -246,6 +246,7 @@ function theme_user_admin_permissions($variables) { '#attributes' => array( 'id' => 'permissions', ), + '#sticky' => TRUE, ); $output = drupal_render($system_compact_link); $output .= drupal_render($table);