We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e68ae3c commit 159f41dCopy full SHA for 159f41d
on_the_web.theme.inc
@@ -33,10 +33,12 @@ function theme_on_the_web_item($variables) {
33
$attributes = array(
34
'class' => $link_classes,
35
'title' => $title,
36
+ 'aria-label' => $title,
37
'rel' => 'nofollow',
38
);
39
if ($target == TRUE) {
40
$attributes['target'] = '_blank';
41
+ $attributes['aria-label'] .= ' (' . t('opens in new window') . ')';
42
}
43
$options = array('attributes' => $attributes, 'html' => TRUE);
44
@@ -65,7 +67,7 @@ function theme_on_the_web_item($variables) {
65
67
$icon_classes[] = 'fa-2x';
66
68
69
- $text = '<i class="' . implode(' ', $icon_classes) . '"></i>';
70
+ $text = '<i aria-hidden="true" class="' . implode(' ', $icon_classes) . '"></i>';
71
72
return l($text, $link, $options);
73
0 commit comments