feat: add tooltip support to SidebarMenuSubButton and update NavMain and NavSecondary components for improved accessibility

This commit is contained in:
mlogclub
2026-05-30 20:50:14 +08:00
parent 7e6fcc45ac
commit 57995e352b
4 changed files with 39 additions and 21 deletions
+2 -1
View File
@@ -37,9 +37,10 @@ export function NavSecondary({
<SidebarMenuButton
render={<Link href={item.url} />}
isActive={isActive(item.url)}
tooltip={item.title}
>
{item.icon}
<span>{item.title}</span>
<span title={item.title}>{item.title}</span>
</SidebarMenuButton>
</SidebarMenuItem>
))}