You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BE][HUD] Improve dropdown behavior on touch devices (#6942)
### Summary
- Fixed dropdown menus (Metrics ▾, Benchmarks ▾, Dev Infra ▾) that were
navigating to pages instead of expanding on mobile
- Resolved z-index stacking issues causing dropdowns to appear behind
other menu items
### Changes
1. Mobile touch handling: Added touch device detection to prevent
navigation and enable proper dropdown toggling on mobile devices
2. Z-index fix: Removed z-index: 9999 from navbar <li> elements to
prevent stacking context conflicts
### Technical details
- Touch devices now use onClick to toggle dropdowns with
preventDefault() to stop navigation
- Non-touch devices continue using hover behavior
- Removing z-index from parent elements allows dropdown z-index to work
correctly in the document's root stacking context
---
Before:
https://github.com/user-attachments/assets/f9810299-75b4-47cb-8bb0-f51d0c9b051e
After:
https://github.com/user-attachments/assets/b4ed1f34-612a-45de-a216-cd22e6392287
0 commit comments