Skip to content

Commit

Permalink
fix: use pointer cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
omBratteng committed Sep 4, 2024
1 parent aed8390 commit d7166a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/shared/src/components/tabs/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function TabList<T extends string = string>({
offset: 0,
indicatorOffset: 0,
});
const isAnchor = Tag === 'a';

const scrollIfNotInView = useCallback(() => {
const { activeTabRect, offset } = dimensions;
Expand Down Expand Up @@ -130,6 +131,7 @@ function TabList<T extends string = string>({
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"
Expand Down

0 comments on commit d7166a6

Please sign in to comment.