fix(nav): resolve broken mobile menu contact button overlay trap and Link props propagation
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Failing after 51s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-06-09 18:57:15 +02:00
parent 5652457e15
commit 5a9c6e4a0a
2 changed files with 13 additions and 1 deletions

View File

@@ -82,8 +82,13 @@ export function Button({
);
if (href) {
const { type, disabled, ...linkProps } = props as any;
return (
<Link href={href} className={styles}>
<Link
href={disabled ? '#' : href}
className={cn(styles, disabled && 'pointer-events-none opacity-50')}
{...linkProps}
>
{content}
</Link>
);