Loading core/modules/system/templates/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title') }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{- key -}} </a> Loading core/modules/views/tests/src/Functional/Plugin/PagerTest.php +4 −1 Original line number Diff line number Diff line Loading @@ -373,7 +373,10 @@ public function testNormalPager() { $view->display_handler->setOption('pager', $pager); $view->save(); $this->drupalGet('test_pager_full', ['query' => ['page' => 2]]); $this->assertEquals('Current page 3', $this->assertSession()->elementExists('css', '.pager__items li.is-active')->getText()); $this->assertEquals('Page 3', $this->assertSession()->elementExists('css', '.pager__items li.is-active')->getText()); $link = $this->assertSession()->elementExists('css', '.pager__items li.is-active a'); $this->assertSame('page', $link->getAttribute('aria-current')); $this->assertSame('Current page', $link->getAttribute('title')); } /** Loading core/themes/claro/templates/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title').addClass(['pager__link', current == key ? ' is-active']) }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{ key }} </a> Loading core/themes/olivero/templates/navigation/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title').addClass('pager__link', current == key ? ' is-active') }}> {% endif %} <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{ key }} {% if current != key %} Loading core/themes/stable9/templates/navigation/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title') }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{- key -}} </a> Loading Loading
core/modules/system/templates/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title') }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{- key -}} </a> Loading
core/modules/views/tests/src/Functional/Plugin/PagerTest.php +4 −1 Original line number Diff line number Diff line Loading @@ -373,7 +373,10 @@ public function testNormalPager() { $view->display_handler->setOption('pager', $pager); $view->save(); $this->drupalGet('test_pager_full', ['query' => ['page' => 2]]); $this->assertEquals('Current page 3', $this->assertSession()->elementExists('css', '.pager__items li.is-active')->getText()); $this->assertEquals('Page 3', $this->assertSession()->elementExists('css', '.pager__items li.is-active')->getText()); $link = $this->assertSession()->elementExists('css', '.pager__items li.is-active a'); $this->assertSame('page', $link->getAttribute('aria-current')); $this->assertSame('Current page', $link->getAttribute('title')); } /** Loading
core/themes/claro/templates/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title').addClass(['pager__link', current == key ? ' is-active']) }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{ key }} </a> Loading
core/themes/olivero/templates/navigation/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title').addClass('pager__link', current == key ? ' is-active') }}> {% endif %} <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{ key }} {% if current != key %} Loading
core/themes/stable9/templates/navigation/pager.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ {% endif %} <a href="{{ item.href }}" title="{{ title }}"{{ item.attributes|without('href', 'title') }}> <span class="visually-hidden"> {{ current == key ? 'Current page'|t : 'Page'|t }} {{ 'Page'|t }} </span> {{- key -}} </a> Loading