Skip to content

Commit 63f735e

Browse files
committed
style: adjust arrow color when blueish
on hover needs the adjustment as well
1 parent 273f0a5 commit 63f735e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/extension-polkagate/src/popup/home/partial/AccountSelection.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ArrowDown2 } from 'iconsax-react';
66
import React, { useCallback, useContext } from 'react';
77
import { useLocation, useNavigate } from 'react-router-dom';
88

9-
import { useSelectedAccount } from '@polkadot/extension-polkagate/src/hooks/index';
9+
import { useIsBlueish, useSelectedAccount } from '@polkadot/extension-polkagate/src/hooks/index';
1010

1111
import { AccountContext, ScrollingTextBox } from '../../../components';
1212
import useIsDark from '../../../hooks/useIsDark';
@@ -66,6 +66,7 @@ interface Props {
6666
function AccountSelection ({ noSelection = false }: Props): React.ReactElement {
6767
const theme = useTheme();
6868
const isDark = useIsDark();
69+
const isBlueish = useIsBlueish();
6970
const { accounts } = useContext(AccountContext);
7071
const location = useLocation();
7172
const navigate = useNavigate();
@@ -127,7 +128,12 @@ function AccountSelection ({ noSelection = false }: Props): React.ReactElement {
127128
/>
128129
{!noSelection &&
129130
<ArrowDown2
130-
color={isDark ? isInAccountLists ? '#05091C' : '#AA83DC' : '#8F97B8'}
131+
color={isDark
132+
? isInAccountLists
133+
? '#05091C'
134+
: isBlueish ? '#596AFF' : '#AA83DC'
135+
: '#8F97B8'
136+
}
131137
size='18'
132138
style={{ transform: isInAccountLists ? 'rotate(180deg)' : undefined, transition: 'all 250ms ease-out ' }}
133139
variant='Bold'

0 commit comments

Comments
 (0)