From d7166a66d756ba9afa0255ac84ca62f48f85685b Mon Sep 17 00:00:00 2001 From: Ole-Martin Bratteng <1681525+omBratteng@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:18:50 +0200 Subject: [PATCH] fix: use pointer cursor --- packages/shared/src/components/tabs/TabList.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/shared/src/components/tabs/TabList.tsx b/packages/shared/src/components/tabs/TabList.tsx index fc2949862e..645e432d84 100644 --- a/packages/shared/src/components/tabs/TabList.tsx +++ b/packages/shared/src/components/tabs/TabList.tsx @@ -45,6 +45,7 @@ function TabList({ offset: 0, indicatorOffset: 0, }); + const isAnchor = Tag === 'a'; const scrollIfNotInView = useCallback(() => { const { activeTabRect, offset } = dimensions; @@ -130,6 +131,7 @@ function TabList({ className.item, 'relative p-2 py-4 text-center font-bold typo-callout', isActive ? '' : 'text-text-tertiary', + isAnchor && 'cursor-pointer', )} onClick={() => onClick(tab)} type="button"