diff --git a/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php b/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php index dcdc4c0..4698072 100644 --- a/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php +++ b/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php @@ -101,7 +101,7 @@ public function testFeedPage() { // Check for presence of an aggregator pager. $this->drupalGet('aggregator'); - $elements = $this->xpath("//ul[@class=:class]", array(':class' => 'pager__items')); + $elements = $this->xpath("//ul[@class=:class]", array(':class' => 'js-pager__items')); $this->assertTrue(!empty($elements), 'Individual source page contains a pager.'); // Check for sources page title. @@ -137,7 +137,7 @@ public function testFeedPage() { // Check for the presence of a pager. $this->drupalGet('aggregator/sources/' . $feed->id()); - $elements = $this->xpath("//ul[@class=:class]", array(':class' => 'pager__items')); + $elements = $this->xpath("//ul[@class=:class]", array(':class' => 'js-pager__items')); $this->assertTrue(!empty($elements), 'Individual source page contains a pager.'); $cache_tags = explode(' ', $this->drupalGetHeader('X-Drupal-Cache-Tags')); $this->assertTrue(in_array('aggregator_feed:' . $feed->id(), $cache_tags)); diff --git a/core/modules/system/css/system.theme.css b/core/modules/system/css/system.theme.css index a74bac0..75d97b6 100644 --- a/core/modules/system/css/system.theme.css +++ b/core/modules/system/css/system.theme.css @@ -156,7 +156,7 @@ abbr.ajax-changed { /** * Markup generated by pager.html.twig. */ -.pager__items { +.js-pager__items { clear: both; text-align: center; } diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php index d7dd6b6..5eeb116 100644 --- a/core/modules/system/src/Tests/Pager/PagerTest.php +++ b/core/modules/system/src/Tests/Pager/PagerTest.php @@ -98,7 +98,7 @@ protected function testPagerQueryParametersAndCacheContext() { * The current pager page the internal browser is on. */ protected function assertPagerItems($current_page) { - $elements = $this->xpath('//ul[@class=:class]/li', array(':class' => 'pager__items')); + $elements = $this->xpath('//ul[@class=:class]/li', array(':class' => 'js-pager__items')); $this->assertTrue(!empty($elements), 'Pager found.'); // Make current page 1-based. diff --git a/core/modules/system/templates/pager.html.twig b/core/modules/system/templates/pager.html.twig index 7ba4ff3..2f49bc3 100644 --- a/core/modules/system/templates/pager.html.twig +++ b/core/modules/system/templates/pager.html.twig @@ -34,7 +34,7 @@ {% if items %}