fix: Prevent hover styling when MenuItem is controlled

This commit is contained in:
Tom Moor
2022-11-28 21:18:15 -05:00
parent fbeaa2ec9f
commit 59d9859a64

View File

@@ -145,6 +145,9 @@ export const MenuAnchorCSS = css<MenuAnchorProps>`
? "pointer-events: none;"
: `
${
props.$active === undefined &&
`
@media (hover: hover) {
&:hover,
&:focus,
@@ -159,6 +162,8 @@ export const MenuAnchorCSS = css<MenuAnchorProps>`
}
}
}
`
}
${
props.$active &&