Skip to content

Commit

Permalink
style: hover color and rotation for search icon
Browse files Browse the repository at this point in the history
  • Loading branch information
wackerow committed Jan 24, 2024
1 parent be0333a commit f3e4511
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ import "@docsearch/css"

export const SearchIconButton = forwardRef<IconButtonProps, "button">(
(props, ref) => (
<Button ref={ref} variant="ghost" isSecondary px={1.5} {...props}>
<Button
ref={ref}
variant="ghost"
isSecondary
px={1.5}
_hover={{
color: "primary.base",
transform: "rotate(5deg)",
transition: "transform 0.2s ease-in-out",
}}
transition="transform 0.2s ease-in-out"
{...props}
>
<MdSearch />
</Button>
)
Expand Down

0 comments on commit f3e4511

Please sign in to comment.