Shows mobile menu on laptops with touchscreens

Created on 19 March 2025, 16 days ago

Problem/Motivation

If a machine has a touchscreen is-ultimobile is not removed from the class list in the html tag. Users with a touchscreen laptop are always served the mobile menu. Even if their laptop is plugged into an external monitor.

Steps to reproduce

Add an ultimenu navigation block and view on a laptop with a touchscreen. This was tested in our custom theme and in Olivero. Every browser on the laptop with the touchscreen showed the mobile menu.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @melissag
  • 🇮🇩Indonesia gausarts

    Thank you.

    Yes, it is 3.x intentional feature to avoid CSS complexity with media queries device width detection.

    Since 3.0.6, you can just as easily override the ulimenu CSS files if fine-grained layouts are required, see CR:
    https://www.drupal.org/node/3447576#ultimenu-touch-replacement

    However I see a point if users want to make it optional, that is, to make a configurable breakpoint for different menu displays.

    Feel free to patch, or chime in for 2-3-hour works, as a new feature.

Production build 0.71.5 2024