Skip to content

Commit 8a91dd8

Browse files
author
mik-laj
committed
Accessibility icons
1 parent 0fc33eb commit 8a91dd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/View/Helper/BootstrapHtmlHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function icon ($icon, $options = []) {
8686
public function faIcon ($icon, $options = []) {
8787
$options = $this->addClass($options, 'fa');
8888
$options = $this->addClass($options, 'fa-'.$icon);
89+
$options['aria-hidden'] = 'true';
8990

9091
return $this->tag('i', '', $options);
9192
}
@@ -98,6 +99,7 @@ public function faIcon ($icon, $options = []) {
9899
public function glIcon ($icon, $options = []) {
99100
$options = $this->addClass($options, 'glyphicon');
100101
$options = $this->addClass($options, 'glyphicon-'.$icon);
102+
$options['aria-hidden'] = 'true';
101103

102104
return $this->tag('i', '', $options);
103105
}

0 commit comments

Comments
 (0)