Change record status: 
Introduced in branch: 

WAI-ARIA roles have been added to core module blocks. For more information see WAI-ARIA roles.

The following WAI-ARIA roles were added (if not specified, the role has been added to all blocks output from the module):

  • complementary
    • aggregator.module
    • help.module
    • syndicate block in node.module
    • poll.module
    • powered-by and help blocks in system.module
    • new and online blocks in user.module
  • form
    • login block in user.module
  • navigation
    • book.module
    • comment.module
    • forum.module
    • locale.module
    • menu.module
    • recent block in node.module
    • shortcut.module
    • statistics.module
    • Menu blocks in system.module
  • search
    • form block in search.module

Module developers can add WAI-ARIA roles to their blocks by implementing hook_preprocess_block().

 * Implements hook_preprocess_block().
 * Adds 'complementary' WAI-ARIA role to all blocks from this module.
function MYMODULE_preprocess_block(&$variables) {
  if ($variables['block']->module == 'MYMODULE') {
    $variables['attributes_array']['role'] = 'complementary';
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other updates done