Skip to content

Active link not highlighted in mobile navigation menu #5068

@yescallop

Description

@yescallop

Describe the bug

Active link is currently highlighted in widescreen navigation bar:

Image

In mobile side bar:

Image

But not in mobile navigation menu:

Image

It can be more consistent if active link is also highlighted in mobile navigation menu.

Reproduction

Open https://vitepress.dev/guide/what-is-vitepress on mobile and open the navigation menu.

Expected behavior

The link Guide is highlighted.

System Info

System:
    OS: Linux 6.6 Arch Linux
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz
    Memory: 5.11 GB / 7.65 GB
    Container: Yes
    Shell: 5.3.9 - /usr/bin/bash
  Binaries:
    Node: 25.2.1 - /usr/sbin/node
    npm: 11.6.4 - /usr/sbin/npm
  npmPackages:
    vitepress: =2.0.0-alpha.15 => 2.0.0-alpha.15

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions