Skip to content

Commit 1cae251

Browse files
committed
Remove redundant hover background color style in sidebar-item.tsx.
1 parent 4285f92 commit 1cae251

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

web/components/nav/sidebar-item.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export function SidebarItem(props: {item: Item; currentPage?: string}) {
2828
}
2929

3030
const sidebarClass = clsx(
31-
isCurrentPage
32-
? 'bg-ink-100 text-primary-700'
33-
: 'text-ink-600 hover:bg-ink-100 hover:text-primary-700',
31+
isCurrentPage ? 'bg-ink-100 text-primary-700' : 'text-ink-600 hover:text-primary-700',
3432
'group flex items-center rounded-md px-3 py-2 text-sm font-medium',
3533
'focus-visible:bg-ink-100 outline-none transition-all',
3634
)

0 commit comments

Comments
 (0)