Skip to content
Snippets Groups Projects
Commit 3b1b9c71 authored by catch's avatar catch
Browse files

Issue #1183042 by mgifford: Follow up for Add WAI-ARIA roles to Core blocks.

parent a384eb48
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -69,7 +69,7 @@ function help_help($path, $arg) {
* Implements hook_preprocess_block().
*/
function help_preprocess_block(&$variables) {
if ($variables['block']->module == 'help') {
if ($variables['block']->module == 'system' && $variables['block']->delta == 'help') {
$variables['attributes_array']['role'] = 'complementary';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment