From a00e66be88d27bef951b6444324b13e51b4f694c Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 7 Jan 2025 14:21:41 +0100 Subject: [PATCH] Allow custom toggle title to be passed to MenuItems --- .../components/GroupList/GroupListItem.tsx | 1 + src/sidebar/components/MenuItem.tsx | 15 +++++++++- src/sidebar/components/test/MenuItem-test.js | 29 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/sidebar/components/GroupList/GroupListItem.tsx b/src/sidebar/components/GroupList/GroupListItem.tsx index 6bb7ba5c48a..1ce7b802cf5 100644 --- a/src/sidebar/components/GroupList/GroupListItem.tsx +++ b/src/sidebar/components/GroupList/GroupListItem.tsx @@ -136,6 +136,7 @@ function GroupListItem({ leftChannelContent={leftChannelContent} onClick={isSelectable ? focusGroup : toggleSubmenu} onToggleSubmenu={toggleSubmenu} + submenuToggleTitle={`Show actions for ${group.name}`} submenu={ <>