fix: Prevent hover styling when MenuItem is controlled
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user