Skip to content

Navigation sections are rendered as links #4358

@lastsecondsave

Description

@lastsecondsave

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

In the version 8.5.0 a first navigation section is rendered as a link:

image

Expected behaviour

As it's just a title nothing should happen when you hover over it.

Actual behaviour

When you hover over it, the section acts as a link, although it's not clickable. Other sections renders fine.

Steps to reproduce

Enable features mentioned in the configuration below.

Package versions

  • Python: 3.10.4
  • MkDocs: 1.3.0
  • Material: 8.5.0

Configuration

theme:
  name: material
  features:
    - navigation.sections
    - navigation.tabs
    - toc.integrate

System information

  • Browser: Firefox, Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions