Skip to content

Commit 28c0bc4

Browse files
committed
fix/accesibility
1 parent 7cb2602 commit 28c0bc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared/components/tab/BottomNav.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ export const BottomNav = () => {
3131
rounded-[37.07px]
3232
bg-mint-50 border border-mint-300
3333
"
34+
aria-label="Bottom navigation"
3435
>
3536
{NAV_ITEMS.map((item) => {
3637
const isActive =
37-
router.pathname === item.href || router.pathname.startsWith(item.href + '/');
38+
router.pathname === item.href ||
39+
router.pathname.startsWith(item.href + '/');
3840

3941
return (
4042
<Link
4143
key={item.id}
4244
href={item.href}
45+
aria-current={isActive ? 'page' : undefined}
4346
className="flex-1 flex justify-center"
4447
>
4548
<TabItem label={item.label} icon={item.icon} isActive={isActive} />

0 commit comments

Comments
 (0)