mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Fixed checkbox hover style
This commit is contained in:
parent
e867c521f7
commit
73c94a374d
@ -34,8 +34,9 @@ const IconWrapper = styled.div`
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 1px solid ${colors.TEXT_PRIMARY};
|
border: 1px solid ${colors.GREEN_PRIMARY};
|
||||||
background: ${props => (props.checked ? colors.TEXT_PRIMARY : colors.WHITE)};
|
color: ${colors.WHITE};
|
||||||
|
background: ${props => (props.checked ? colors.GREEN_PRIMARY : colors.WHITE)};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -74,7 +75,12 @@ class Checkbox extends PureComponent {
|
|||||||
<IconWrapper checked={checked}>
|
<IconWrapper checked={checked}>
|
||||||
{checked && (
|
{checked && (
|
||||||
<Tick>
|
<Tick>
|
||||||
<Icon size={26} color={checked ? colors.WHITE : colors.GREEN_PRIMARY} icon={icons.SUCCESS} />
|
<Icon
|
||||||
|
hoverColor={colors.WHITE}
|
||||||
|
size={26}
|
||||||
|
color={checked ? colors.WHITE : colors.GREEN_PRIMARY}
|
||||||
|
icon={icons.SUCCESS}
|
||||||
|
/>
|
||||||
</Tick>
|
</Tick>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user