Improve Mobile Navigation UX for Sidebar Menu

未关闭
#856 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞

调研方向

该 issue 未指明文件、测试或入口点。在移动设备上重现侧边栏流程,检查文档网站的导航实现,并选择一种能让所选页面内容立即可见的方法;通过重复列出的步骤来验证结果。

由索引模型根据 Issue 内容生成。

描述

Problem

When viewing the Matomo Developer Docs on a mobile device, navigating via the sidebar menu leads to a confusing user experience:

  1. A user taps a sidebar item—for example, "Distributing your plugin".
  2. The page reloads and the selected menu item becomes active.
  3. Because the reload is very fast and the menu is still visible, it’s not obvious to the user that the new page has already loaded.
  4. The actual page content starts far below the sidebar, requiring significant scrolling before the user sees any change on the screen.

This makes it feel as though nothing happened after tapping the link, and the user may think the tap didn’t register.

Image
Expected / Desired Behavior

After selecting a sidebar link on mobile:

The user should immediately see the page content, not the sidebar again at the top.

Navigation should provide a clear visual indication that the user has moved to a new page.

Possible Solutions

Any of the following could improve UX:

  • Auto-jump to the top of the main content area after navigating.
  • Collapse or hide the sidebar automatically once a menu item is selected.
  • Scroll the page to the content anchor on load (#content or similar).
  • Use a different mobile navigation pattern, e.g. a slide-out drawer that closes after selection.
  • Show a subtle transition or loading indicator before content appears.
Why This Matters

Mobile users may miss that the page has changed, leading to confusion and unnecessary scrolling. Improving this flow will make the documentation feel much more responsive and intuitive on smaller screens.

Steps to Reproduce
  • Open developer.matomo.org on a mobile device.
  • Open the sidebar navigation.
  • Tap "Distributing your plugin" (or another item).
  • Observe that the sidebar remains at the top after reload, pushing the actual content far below.
主要语言
PHP
星标
58
派生
88
平均合并
2 天 13 小时
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

matomo-org/developer-documentation 的其他 Issue

查看 matomo-org/developer-documentation 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。