Skip to content

Commit 4cc75d6

Browse files
PengyuChen01pengyu
and
pengyu
authored
fix(frontend): sidebar chat is not button problem (#187)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - The interactive sidebar element was updated to use a button for clearer semantic meaning and improved accessibility. - The visual styling and click functionality remain unchanged for the end-user. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: pengyu <pengyuchen01@gmail.com>
1 parent 60b1888 commit 4cc75d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/sidebar-item.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function SideBarItemComponent({
8383
};
8484

8585
return (
86-
<div
86+
<button
8787
className={cn(
8888
buttonVariants({
8989
variant,
@@ -159,7 +159,7 @@ function SideBarItemComponent({
159159
</DialogHeader>
160160
</DialogContent>
161161
</Dialog>
162-
</div>
162+
</button>
163163
);
164164
}
165165

0 commit comments

Comments
 (0)