From 47a7b73659fddaea8c6fde912999d8cbe456aac0 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 20 Jul 2020 23:43:59 +0100 Subject: [PATCH] Issue #3155462 by andrewmacpherson: Remove landmark region role from Powered-by-Drupal block --- core/modules/system/system.module | 4 ---- .../standard/tests/src/Functional/StandardTest.php | 10 +--------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 28758b0601..7552c32210 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -800,10 +800,6 @@ function system_preprocess_block(&$variables) { ]; } break; - - case 'system_powered_by_block': - $variables['attributes']['role'] = 'complementary'; - break; } } diff --git a/core/profiles/standard/tests/src/Functional/StandardTest.php b/core/profiles/standard/tests/src/Functional/StandardTest.php index 82d1632626..8e3805d1c9 100644 --- a/core/profiles/standard/tests/src/Functional/StandardTest.php +++ b/core/profiles/standard/tests/src/Functional/StandardTest.php @@ -61,8 +61,7 @@ public function testStandard() { $this->drupalGet(''); $this->assertText('Main navigation'); - // Verify we have role = aria on system_powered_by and help_block - // blocks. + // Verify we have role = complementary on help_block blocks. $this->drupalGet('admin/structure/block'); $elements = $this->xpath('//div[@role=:role and @id=:id]', [ ':role' => 'complementary', @@ -71,13 +70,6 @@ public function testStandard() { $this->assertCount(1, $elements, 'Found complementary role on help block.'); - $this->drupalGet(''); - $elements = $this->xpath('//div[@role=:role and @id=:id]', [ - ':role' => 'complementary', - ':id' => 'block-bartik-powered', - ]); - $this->assertCount(1, $elements, 'Found complementary role on powered by block.'); - // Verify anonymous user can see the block. $this->drupalLogout(); $this->assertText('Main navigation'); -- GitLab