Skip to content

Commit

Permalink
Fix hover events on filter buttons (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigridge authored Jul 25, 2024
1 parent ecb5bcd commit 692c065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Buttons/FilterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export default function FilterButton({
className={`appearance-none border flex items-center border-opacity-50 m-[1px] mr-2 h-4 w-4 border-primary hover:border-primary checked:bg-primary
${
inputProps.checked && !inputProps.disabled
inputProps.checked
? "hover:bg-primary hover:brightness-[1.5]"
: "hover:bg-primary hover:bg-opacity-10"
}
${rounded ? "rounded-full" : "rounded-sm"} ${
inputProps.disabled &&
"border-black border-opacity-20 bg-black/5 hover:bg-black hover:bg-opacity-5 hover:border-black hover:border-opacity-20 checked:bg-primary checked:bg-opacity-50 checked:hover:bg-primary checked:hover:bg-opacity-50"
"border-black/20 bg-black/5 pointer-events-none checked:bg-primary checked:bg-opacity-50"
}
`}
/>
Expand Down

0 comments on commit 692c065

Please sign in to comment.