Skip to content

Commit

Permalink
feat: increase color contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Jan 21, 2024
1 parent b9cd538 commit df18b1a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions electron/renderer/components/sidebar/sidebar-item-help.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { EuiIcon, EuiKeyPadMenu, EuiKeyPadMenuItem } from '@elastic/eui';
import {
EuiIcon,
EuiKeyPadMenu,
EuiKeyPadMenuItem,
useEuiBackgroundColor,
} from '@elastic/eui';
import type { ReactNode } from 'react';
import { useMemo } from 'react';
import {
Expand Down Expand Up @@ -43,7 +48,15 @@ const HelpItem: React.FC<HelpItemProps> = (props: HelpItemProps): ReactNode => {
const { label, iconType, onClick } = props;

return (
<EuiKeyPadMenuItem label={label} onClick={onClick}>
<EuiKeyPadMenuItem
label={label}
onClick={onClick}
css={{
':hover': {
backgroundColor: useEuiBackgroundColor('primary'),
},
}}
>
<EuiIcon type={iconType} size="l" color="primary" />
</EuiKeyPadMenuItem>
);
Expand Down

0 comments on commit df18b1a

Please sign in to comment.