Reset overflow visible to previous value, fix console error (#13586)

Fixing two issues I introduced in #13583 and #13573

- Overflow visible is not needed, I missed that as I was switching
between different implementations
- Button within button not allowed (not the prettiest fix but I din't
think it's worth digging deeper)
This commit is contained in:
Félix Malfait
2025-08-04 13:00:54 +02:00
committed by GitHub
parent 5e418e3667
commit 5c7c8d1bba
2 changed files with 2 additions and 2 deletions
@@ -21,7 +21,7 @@ export type NavigationDrawerProps = {
const StyledAnimatedContainer = styled(motion.div)`
max-height: 100vh;
overflow: visible;
overflow: hidden;
`;
const StyledContainer = styled.div<{
@@ -307,7 +307,7 @@ export const NavigationDrawerItem = ({
aria-selected={active}
danger={danger}
soon={soon}
as={to ? Link : undefined}
as={to ? Link : rightOptions ? 'div' : undefined}
to={to ? to : undefined}
indentationLevel={indentationLevel}
isNavigationDrawerExpanded={isNavigationDrawerExpanded}