Skip to content

Commit 04ecab9

Browse files
authored
Merge pull request #13755 from ethereum/icon-transition
fix: hover-off transition on color toggle
2 parents bf84b58 + 47c36f6 commit 04ecab9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/Nav/Desktop/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ const DesktopNavMenu = ({ toggleColorMode }: DesktopNavMenuProps) => {
5959
variant="ghost"
6060
isSecondary
6161
px={{ base: "2", xl: "3" }}
62+
sx={{
63+
"& > svg": {
64+
transition: "transform 0.5s, color 0.2s",
65+
},
66+
}}
6267
_hover={desktopHoverFocusStyles}
6368
_focus={desktopHoverFocusStyles}
6469
onClick={toggleColorMode}

0 commit comments

Comments
 (0)