Skip to content

Commit f3e4511

Browse files
committed
style: hover color and rotation for search icon
1 parent be0333a commit f3e4511

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/components/Search/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,19 @@ import "@docsearch/css"
2727

2828
export const SearchIconButton = forwardRef<IconButtonProps, "button">(
2929
(props, ref) => (
30-
<Button ref={ref} variant="ghost" isSecondary px={1.5} {...props}>
30+
<Button
31+
ref={ref}
32+
variant="ghost"
33+
isSecondary
34+
px={1.5}
35+
_hover={{
36+
color: "primary.base",
37+
transform: "rotate(5deg)",
38+
transition: "transform 0.2s ease-in-out",
39+
}}
40+
transition="transform 0.2s ease-in-out"
41+
{...props}
42+
>
3143
<MdSearch />
3244
</Button>
3345
)

0 commit comments

Comments
 (0)