Skip to content

Commit 4c56c79

Browse files
committed
Update vertical nav items adding title attribute and aria-hidden true.
Fixes openshift#2294
1 parent b2a602f commit 4c56c79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/views/_sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
ng-mouseleave="onMouseLeave(primaryItem)"
2525
class="list-group-item">
2626
<a ng-if="primaryItem.href" ng-href="{{navURL(primaryItem.href)}}" ng-click="itemClicked(primaryItem)">
27-
<span class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
27+
<span alt="{{primaryItem.label}}" aria-hidden="true" class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
2828
</a>
2929
<a
3030
ng-if="!primaryItem.href"
3131
href=""
3232
ng-click="itemClicked(primaryItem)">
33-
<span class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
33+
<span alt="{{primaryItem.label}}" aria-hidden="true" class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
3434
</a>
3535

3636
<!-- Secondary Nav -->

dist/scripts/templates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
490490
" 'secondary-nav-item-pf': primaryItem.secondaryNavSections.length\n" +
491491
" }\" ng-if=\"show(primaryItem)\" ng-mouseenter=\"onMouseEnter(primaryItem)\" ng-mouseleave=\"onMouseLeave(primaryItem)\" class=\"list-group-item\">\n" +
492492
"<a ng-if=\"primaryItem.href\" ng-href=\"{{navURL(primaryItem.href)}}\" ng-click=\"itemClicked(primaryItem)\">\n" +
493-
"<span class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
493+
"<span alt=\"{{primaryItem.label}}\" aria-hidden=\"true\" class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
494494
"</a>\n" +
495495
"<a ng-if=\"!primaryItem.href\" href=\"\" ng-click=\"itemClicked(primaryItem)\">\n" +
496-
"<span class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
496+
"<span alt=\"{{primaryItem.label}}\" aria-hidden=\"true\" class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
497497
"</a>\n" +
498498
"\n" +
499499
"<div ng-if=\"primaryItem.secondaryNavSections.length\" class=\"secondary-nav-item-pf\" ng-class=\"{\n" +

0 commit comments

Comments
 (0)