The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(a11y): add aria-label to navigation drawer collapse button (WCAG … (#23287)
Gueye Papa Djadji93066ae800b2
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsxindex 287ad9b219c..a29f5099670 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx@@ -3,6 +3,7 @@ import { navigationDrawerActiveTabState } from '@/ui/navigation/states/navigatioimport { NAVIGATION_DRAWER_TABS } from '@/ui/navigation/states/navigationDrawerTabs';import { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';+import { t } from '@lingui/core/macro';import { styled } from '@linaria/react';import {IconLayoutSidebarLeftCollapse,@@ -53,6 +54,11 @@ export const NavigationDrawerCollapseButton = ({}accent="secondary"size="small"+ aria-label={+ direction === 'left'+ ? t`Collapse navigation panel`+ : t`Expand navigation panel`+ }/></StyledCollapseButton>);