Skip to content

Commit c5233e9

Browse files
feat(ui): add title attribute to sidebar toggle button for accessibility
Added a `title` attribute to the sidebar toggle button in `RootLayout` so sighted users can see a tooltip indicating the action (Expand/Collapse sidebar) on hover. Co-authored-by: jmbish04 <26469722+jmbish04@users.noreply.github.com>
1 parent 5475ed8 commit c5233e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/frontend/src/layouts/RootLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default function RootLayout() {
8686
className="shrink-0"
8787
onClick={() => setIsSidebarOpen((v) => !v)}
8888
aria-label={isSidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
89+
title={isSidebarOpen ? "Collapse sidebar" : "Expand sidebar"}
8990
>
9091
{isSidebarOpen ? (
9192
<PanelLeftClose className="h-5 w-5" />

0 commit comments

Comments
 (0)