Commit df18b1a 1 parent b9cd538 commit df18b1a Copy full SHA for df18b1a
File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
- import { EuiIcon , EuiKeyPadMenu , EuiKeyPadMenuItem } from '@elastic/eui' ;
1
+ import {
2
+ EuiIcon ,
3
+ EuiKeyPadMenu ,
4
+ EuiKeyPadMenuItem ,
5
+ useEuiBackgroundColor ,
6
+ } from '@elastic/eui' ;
2
7
import type { ReactNode } from 'react' ;
3
8
import { useMemo } from 'react' ;
4
9
import {
@@ -43,7 +48,15 @@ const HelpItem: React.FC<HelpItemProps> = (props: HelpItemProps): ReactNode => {
43
48
const { label, iconType, onClick } = props ;
44
49
45
50
return (
46
- < EuiKeyPadMenuItem label = { label } onClick = { onClick } >
51
+ < EuiKeyPadMenuItem
52
+ label = { label }
53
+ onClick = { onClick }
54
+ css = { {
55
+ ':hover' : {
56
+ backgroundColor : useEuiBackgroundColor ( 'primary' ) ,
57
+ } ,
58
+ } }
59
+ >
47
60
< EuiIcon type = { iconType } size = "l" color = "primary" />
48
61
</ EuiKeyPadMenuItem >
49
62
) ;
You can’t perform that action at this time.
0 commit comments