From c3f2dced56809cabb76ce4e066266d3c0bd5c64b Mon Sep 17 00:00:00 2001 From: Brad Ullman Date: Sun, 26 Mar 2023 14:19:27 -0700 Subject: [PATCH] convert conversation icons to buttons (accessibility) (#192) * update sidebar overflow * update all clickable icons to buttons * refactor buttons so they are not inside other buttons * format doc * update input background to transparent * adjust btns size to match #202 * update text size per #202 --- components/Sidebar/Conversation.tsx | 102 +++++++++++++++------------- components/Sidebar/Sidebar.tsx | 2 +- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/components/Sidebar/Conversation.tsx b/components/Sidebar/Conversation.tsx index 260412c..f0d7164 100644 --- a/components/Sidebar/Conversation.tsx +++ b/components/Sidebar/Conversation.tsx @@ -63,90 +63,98 @@ export const ConversationComponent: FC = ({ }, [isRenaming, isDeleting]); return ( - )} {(isDeleting || isRenaming) && selectedConversation.id === conversation.id && ( -
- + +
)} {selectedConversation.id === conversation.id && !isDeleting && !isRenaming && ( -
- + +
)} - + ); }; diff --git a/components/Sidebar/Sidebar.tsx b/components/Sidebar/Sidebar.tsx index eb7df29..292cfcf 100644 --- a/components/Sidebar/Sidebar.tsx +++ b/components/Sidebar/Sidebar.tsx @@ -150,7 +150,7 @@ export const Sidebar: FC = ({ )} -
+
{folders.length > 0 && (