File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ angular.module('openshiftConsole')
59
59
var clearHover = function ( ) {
60
60
_ . each ( $scope . navItems , function ( navItem ) {
61
61
navItem . isHover = false ;
62
+ navItem . fakeHover = false ;
62
63
} ) ;
63
64
} ;
64
65
@@ -101,6 +102,8 @@ angular.module('openshiftConsole')
101
102
// activated using the keyboard.
102
103
clearHover ( ) ;
103
104
105
+ primaryItem . fakeHover = true ;
106
+
104
107
// Open the item regardless of whether the mouse is really over it
105
108
// for keyboard and screen reader accessibility.
106
109
primaryItem . isHover = true ;
@@ -136,6 +139,7 @@ angular.module('openshiftConsole')
136
139
primaryItem . mouseEnterTimeout = null ;
137
140
}
138
141
142
+ primaryItem . fakeHover = false ;
139
143
primaryItem . mouseLeaveTimeout = $timeout ( function ( ) {
140
144
primaryItem . isHover = false ;
141
145
primaryItem . mouseLeaveTimeout = null ;
Original file line number Diff line number Diff line change 32
32
& .active > a ,
33
33
& :focus > a ,
34
34
& :hover > a ,
35
- > a :focus ,
35
+ & .fake-hover > a ,
36
36
> a :hover {
37
37
background-color : @nav-pf-vertical-active-bg-color ;
38
38
color : @nav-pf-vertical-active-color ;
Original file line number Diff line number Diff line change 17
17
ng-class ="{
18
18
active: primaryItem === activePrimary,
19
19
'is-hover': primaryItem.isHover,
20
+ 'fake-hover': primaryItem.fakeHover,
20
21
'secondary-nav-item-pf': primaryItem.secondaryNavSections.length
21
22
} "
22
23
ng-if ="show(primaryItem) "
You can’t perform that action at this time.
0 commit comments