New nav layout uses cursor-grab when mouse is pushed

AI-generated summary

The discussion revolves around the new navigation layout’s cursor behavior. darkpixlz reports that the cursor: grab appears unnecessarily, causing confusion as it suggests draggable functionality that doesn’t exist. keegan clarifies that the navigation is actually draggable on smaller screens to access hidden items, suggesting the cursor should only change to grab when scrollable. darkpixlz points out an inconsistency where top labels are hidden but bottom ones are not. sam questions the feasibility of conditional cursor behavior in CSS. awesomerobot confirms it’s possible and shares a PR addressing the issue, while also explaining the intentional design choice for bottom labels to remain visible due to their higher item count and usability concerns awesomerobot.

Hello,

I like the new navigation layout, but I found an issue with it.


To reproduce, just hold down:

This is mainly misleading, I thought I would be able to drag it around, but instead, it’s just showing the cursor:drag cursor while serving no purpose. I think it’s best if it stays at pointer or default.

5 Likes

On smaller device widths the menu can actually be grabbed and dragged across to reach hidden items:

Though, perhaps we could make the cursor default only when the nav can’t scroll.

5 Likes

Yeah, I noticed that just trying it.

I noticed a bit of an inconsistency though. The labels are hidden at the top, but not the bottom.

4 Likes

I am not sure this is doable in CSS @awesomerobot ?

6 Likes

We check if it’s scrollable on resize so we can add the left/right controls… so I think this should be doable!

6 Likes

This will make it so it’s only grabby when it’s scrollable

https://github.com/discourse/discourse/pull/20447

Yeah that’s intentional, the bottom list has more items and I don’t think they’re as easy to figure out without text.

5 Likes

This topic was automatically closed after 21 hours. New replies are no longer allowed.