Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
72fa05ef
Unverified
Commit
72fa05ef
authored
Jul 20, 2020
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3155462
by andrewmacpherson: Remove landmark region role from Powered-by-Drupal block
(cherry picked from commit
47a7b736
)
parent
5f8df0e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
core/modules/system/system.module
core/modules/system/system.module
+0
-4
core/profiles/standard/tests/src/Functional/StandardTest.php
core/profiles/standard/tests/src/Functional/StandardTest.php
+1
-9
No files found.
core/modules/system/system.module
View file @
72fa05ef
...
...
@@ -869,10 +869,6 @@ function system_preprocess_block(&$variables) {
];
}
break
;
case
'system_powered_by_block'
:
$variables
[
'attributes'
][
'role'
]
=
'complementary'
;
break
;
}
}
...
...
core/profiles/standard/tests/src/Functional/StandardTest.php
View file @
72fa05ef
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment