mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
Fix OpButton hover
This commit is contained in:
@@ -16,18 +16,20 @@ export function OpButton({ op, selected, style, onClick }: OpButtonProps) {
|
||||
return (
|
||||
<Button
|
||||
variant="bare"
|
||||
style={{
|
||||
style={({ isHovered, isPressed }) => ({
|
||||
backgroundColor: theme.pillBackground,
|
||||
marginBottom: 5,
|
||||
...style,
|
||||
...(selected && {
|
||||
color: theme.buttonNormalSelectedText,
|
||||
'&,:hover,:active': {
|
||||
backgroundColor: theme.buttonNormalSelectedBackground,
|
||||
color: theme.buttonNormalSelectedText,
|
||||
},
|
||||
...(isHovered || isPressed
|
||||
? {
|
||||
backgroundColor: theme.buttonNormalSelectedBackground,
|
||||
color: theme.buttonNormalSelectedText,
|
||||
}
|
||||
: {}),
|
||||
}),
|
||||
}}
|
||||
})}
|
||||
onPress={onClick}
|
||||
>
|
||||
{friendlyOp(op)}
|
||||
|
||||
Reference in New Issue
Block a user