Skip to content

πŸ™Œ OpenHands: AI-Driven Development

hotfix: Conversation panel toggle should change color given state (#6791)

sp.wack96d19928235b
diff --git a/frontend/src/components/features/sidebar/sidebar.tsx b/frontend/src/components/features/sidebar/sidebar.tsx
index d4c8f3c0b9..fdbb47aa9c 100644
--- a/frontend/src/components/features/sidebar/sidebar.tsx
+++ b/frontend/src/components/features/sidebar/sidebar.tsx
@@ -22,6 +22,7 @@ import { TooltipButton } from "#/components/shared/buttons/tooltip-button";
import { ConversationPanelWrapper } from "../conversation-panel/conversation-panel-wrapper";
import { useLogout } from "#/hooks/mutation/use-logout";
import { useConfig } from "#/hooks/query/use-config";
+import { cn } from "#/utils/utils";
export function Sidebar() {
const dispatch = useDispatch();
@@ -83,7 +84,12 @@ export function Sidebar() {
ariaLabel="Conversations"
onClick={() => setConversationPanelIsOpen((prev) => !prev)}
>
- <FaListUl size={22} />
+ <FaListUl
+ size={22}
+ className={cn(
+ conversationPanelIsOpen ? "text-white" : "text-[#9099AC]",
+ )}
+ />
</TooltipButton>
<DocsButton />
</div>