Skip to content

Commit

Permalink
Update vertical nav items adding title attribute and aria-hidden true.
Browse files Browse the repository at this point in the history
  • Loading branch information
sg00dwin committed Oct 19, 2017
1 parent b2a602f commit 4c56c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
ng-mouseleave="onMouseLeave(primaryItem)"
class="list-group-item">
<a ng-if="primaryItem.href" ng-href="{{navURL(primaryItem.href)}}" ng-click="itemClicked(primaryItem)">
<span class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
<span alt="{{primaryItem.label}}" aria-hidden="true" class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
</a>
<a
ng-if="!primaryItem.href"
href=""
ng-click="itemClicked(primaryItem)">
<span class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
<span alt="{{primaryItem.label}}" aria-hidden="true" class="{{primaryItem.iconClass}}"></span> <span class="list-group-item-value">{{primaryItem.label}}</span>
</a>

<!-- Secondary Nav -->
Expand Down
4 changes: 2 additions & 2 deletions dist/scripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
" 'secondary-nav-item-pf': primaryItem.secondaryNavSections.length\n" +
" }\" ng-if=\"show(primaryItem)\" ng-mouseenter=\"onMouseEnter(primaryItem)\" ng-mouseleave=\"onMouseLeave(primaryItem)\" class=\"list-group-item\">\n" +
"<a ng-if=\"primaryItem.href\" ng-href=\"{{navURL(primaryItem.href)}}\" ng-click=\"itemClicked(primaryItem)\">\n" +
"<span class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
"<span alt=\"{{primaryItem.label}}\" aria-hidden=\"true\" class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
"</a>\n" +
"<a ng-if=\"!primaryItem.href\" href=\"\" ng-click=\"itemClicked(primaryItem)\">\n" +
"<span class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
"<span alt=\"{{primaryItem.label}}\" aria-hidden=\"true\" class=\"{{primaryItem.iconClass}}\"></span> <span class=\"list-group-item-value\">{{primaryItem.label}}</span>\n" +
"</a>\n" +
"\n" +
"<div ng-if=\"primaryItem.secondaryNavSections.length\" class=\"secondary-nav-item-pf\" ng-class=\"{\n" +
Expand Down

0 comments on commit 4c56c79

Please sign in to comment.