Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix: menu text color
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Dec 26, 2023
1 parent d193d9a commit 9ae3d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/blocks/src/lib/navigation/desktop/desktop.nav-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const DesktopNavItem: React.FC<DesktopNavItemProps> = ({
const { setShowLangContent } = useLanguageSwitcher();
const [isActive, setIsActive] = useState(false);
useEffect(() => {
if (item.type === 'direct') {
if (item.type === 'direct' && typeof window !== undefined) {
const { pathname } = window.location;
setIsActive(
removeTrailingSlash(pathname) === removeTrailingSlash(item.href),
Expand All @@ -39,7 +39,7 @@ export const DesktopNavItem: React.FC<DesktopNavItemProps> = ({
>
{item.type === 'direct' ? (
<CustomLink
className="group-hover:text-typography-prominent aria-[current=true]:text-typography-prominent"
className="text-typography-default group-hover:text-typography-prominent aria-[current=true]:text-typography-prominent"
href={item.href}
hasHoverDecoration={false}
onMouseEnter={() => {
Expand Down
1 change: 1 addition & 0 deletions libs/blocks/src/lib/navigation/mobile/mobile.nav-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const MobileNavLink: React.FC<MobileNavLinkProps> = ({
href={item.href}
hasHoverDecoration={false}
className={qtMerge(
'text-typography-default',
'py-general-sm text-body-md font-bold leading-body-md',
'hover:text-typography-prominent',
className,
Expand Down

0 comments on commit 9ae3d3b

Please sign in to comment.