baloise / design-system

The Baloise Design System consists of reusable components and a clearly defined visual style, that can be assembled together to build any number of applications.
https://design.baloise.dev
Apache License 2.0
100 stars 27 forks source link

:bug: fix(bal-nav): page scrolling on smaller desktop views #1476

Open GinaBiondo-aperto opened 1 month ago

GinaBiondo-aperto commented 1 month ago

Current Behavior

On smaller desktop views the meta nav is opening with click on the first main nav entry. This causes a scrolling back to the top. When clicking another link in the main nav the meta menu closes and the page scrolls back to its last position.

https://github.com/user-attachments/assets/6744a4dd-01b0-46be-9517-b5933bddb018

Expected Behavior

Not sure what the expected behavior is here but I would assume the meta nav should not open with clicking the first main nav link

Steps to Reproduce

  1. regular usage of navigation

Version

16.4.0

Browsers

Firefox, Chrome, Safari, Microsoft Edge

Device

Desktop

Code Reproduction URL

No response

Additional Information

No response

Code of Conduct

hirsch88 commented 5 days ago

Proposals

  1. We leave it as it is, because touch pads are hard to track if it is only a click
  2. We always open the meta nav on click