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