Skip to content

The open alternative to Salesforce, designed for AI.

fix: use aria-current instead of aria-selected on navigation drawer items (#23160)

Thomas Trompettede3889e04afb
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
index c28c959035d..147f381d832 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
@@ -330,7 +330,7 @@ export const NavigationDrawerItem = ({
onClick={handleMouseDownNavigationClickClick}
onMouseDown={handleMouseDown}
active={active}
- aria-selected={active}
+ aria-current={isDefined(to) && active ? 'page' : undefined}
isSoon={isSoon}
variant={variant}
indentationLevel={indentationLevel}