fix: dropdown service links not working from navbar

The smooth scroll handler was intercepting clicks on the "Servicios"
dropdown toggle link (href="#servicios"), which on the landing page
would find the #servicios section and call closeMenu(), immediately
closing the menu before the user could click any service link.

Fix: skip dropdown toggle links in smooth scroll handler, make
dropdown toggle work via click on all devices (not just CSS :hover).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gestoría LP
2026-03-02 04:11:59 +00:00
parent 10f0c25f74
commit 7fbdbcb597
2 changed files with 19 additions and 7 deletions

View File

@@ -407,7 +407,8 @@ p:last-child {
transform: translateY(0);
}
.navbar__item--dropdown:hover .navbar__link--dropdown i {
.navbar__item--dropdown:hover .navbar__link--dropdown i,
.navbar__item--dropdown.active .navbar__link--dropdown i {
transform: rotate(180deg);
}