Skip to content

Commit

Permalink
Merge pull request #88 from Blazity/error-handle
Browse files Browse the repository at this point in the history
feat: add link hover
  • Loading branch information
Max-Mogilski committed Nov 7, 2023
2 parents f2619f9 + 7fc5395 commit 84d9857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Navigation({ navigation }: NavigationProps) {
const categoryUrl = navElement.element?.__typename === "Category" ? "/category" : ""
const url = `/${locale}${categoryUrl}/${navElement?.element?.slug}`
return (
<li key={navElement?.element?.slug}>
<li key={navElement?.element?.slug} className="rounded-xl p-2 hover:bg-custom-dim">
<Link prefetch={false} href={url} hrefLang={locale} onClick={() => setIsSheetOpen(false)}>
{navElement?.element?.title}
</Link>
Expand All @@ -45,8 +45,8 @@ export function Navigation({ navigation }: NavigationProps) {
>
<Image src={logo?.url} width={100} height={100} alt="site-logo" quality={100} />
</Link>
<ul className="hidden items-center gap-5 sm:flex-wrap lg:flex">
<li className="flex items-center">
<ul className="hidden items-center gap-4 sm:flex-wrap lg:flex">
<li className="-mr-3 flex items-center">
<DynamicSearchDialog />
</li>
{navElements}
Expand Down

0 comments on commit 84d9857

Please sign in to comment.