Skip to content

Commit df18b1a

Browse files
committed
feat: increase color contrast
1 parent b9cd538 commit df18b1a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

electron/renderer/components/sidebar/sidebar-item-help.tsx

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { EuiIcon, EuiKeyPadMenu, EuiKeyPadMenuItem } from '@elastic/eui';
1+
import {
2+
EuiIcon,
3+
EuiKeyPadMenu,
4+
EuiKeyPadMenuItem,
5+
useEuiBackgroundColor,
6+
} from '@elastic/eui';
27
import type { ReactNode } from 'react';
38
import { useMemo } from 'react';
49
import {
@@ -43,7 +48,15 @@ const HelpItem: React.FC<HelpItemProps> = (props: HelpItemProps): ReactNode => {
4348
const { label, iconType, onClick } = props;
4449

4550
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+
>
4760
<EuiIcon type={iconType} size="l" color="primary" />
4861
</EuiKeyPadMenuItem>
4962
);

0 commit comments

Comments
 (0)