question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sticky navigation tabs have wrong spacing in Insiders 4.15.2+

See original GitHub issue

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 mkdocs-material-8.2.15-insiders-4.15.2 the top nav menu is small.

It was ok in mkdocs-material-8.2.15-insiders-4.15.1 (rolling back to that version fixed it)

image

Expected behaviour

A nicely-tyled top nav

Actual behaviour

A not-nicely styled top nav

Steps to reproduce

  1. Install mkdocs-material-8.2.15-insiders-4.15.2
  2. Build or serve

Package versions

  • Python: 3.10.2
  • MkDocs: 1.3.0
  • Material: mkdocs-material-8.2.15-insiders-4.15.2 (note that I haven’t tried with non-insiders)

Configuration

https://github.com/n8n-io/n8n-docs/blob/main/mkdocs.yml (I have tested it without the extra_css)

System information

  • Browsers: tested in Chrome, Firefox, Edge
  • My OS is Windows 10, but this is also happening on our live site, which is built by Netlify (their build image is Ubuntu-based I believe)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, May 28, 2022

Released as part of 8.2.16+insiders-4.16.1.

1reaction
squidfunkcommented, May 28, 2022

Fixed in d3c587b. This bug was exclusive to Insiders and was introduced with the release of navigation.prune. The tabs items received the wrong classes when tabs were made sticky, as they are now rendered as part of the header partial. This partial defined a Jinja class variable that leaked into the tabs item partial. Classes are now properly cleared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - Material for MkDocs - GitHub Pages
Refactored navigation tabs to simplify grouping behavior · Added support for sticky navigation tabs · Added support for arbitrary links in navigation tabs...
Read more >
mkdocs-material Changelog - PyUp.io
Fixed 3950: Sticky navigation tabs rendering broken (4.15.2 regression) * Fixed 3958: Links invisible when using white primary color ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found