Skip to content

Commit

Permalink
INTERIM-148 Added role to content section (#153)
Browse files Browse the repository at this point in the history
* INTERIM-148 Added role to content section

* INTERIM-148 Use proper role
  • Loading branch information
angelamnr committed Jan 2, 2018
1 parent 846a379 commit ac79c30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion preprocess/preprocess-section.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ function suitcase_interim_alpha_preprocess_section(&$vars) {
if ($vars['elements']['#section'] == 'header') {
$vars['attributes_array']['role'] = 'banner';
}
if ($vars['elements']['#section'] == 'content') {
$vars['attributes_array']['role'] = 'main';
}
if ($vars['elements']['#section'] == 'footer') {
$vars['attributes_array']['role'] = 'contentinfo';
}
}
}

0 comments on commit ac79c30

Please sign in to comment.