Sticky navigation tabs have wrong spacing in Insiders 4.15.2+
See original GitHub issueContribution guidelines
- I’ve read the contribution guidelines and wholeheartedly agree
I’ve found a bug and checked that …
- … the problem doesn’t occur with the
mkdocs
orreadthedocs
themes - … the problem persists when all overrides are removed, i.e.
custom_dir
,extra_javascript
andextra_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)
Expected behaviour
A nicely-tyled top nav
Actual behaviour
A not-nicely styled top nav
Steps to reproduce
- Install mkdocs-material-8.2.15-insiders-4.15.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:
- Created a year ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released as part of 8.2.16+insiders-4.16.1.
Fixed in
d3c587b
. This bug was exclusive to Insiders and was introduced with the release ofnavigation.prune
. The tabs items received the wrong classes when tabs were made sticky, as they are now rendered as part of theheader
partial. This partial defined a Jinjaclass
variable that leaked into the tabs item partial. Classes are now properly cleared.