Mkdocs-material: Active page highlight not working with default palette

Created on 7 Feb 2018  路  2Comments  路  Source: squidfunk/mkdocs-material

Description

The active page highlight color doesn't work when using the color by default by not declaring the palette configuration. You are required to declare the palette colors for active page to work.

Expected behavior

The active page highlight should work when not explicitly declaring the palette. It should use the colors by default.
image

Actual behavior

The active page highlight doesn't work when not explicitly declaring the palette.
image

Steps to reproduce the bug

  1. Create any MkDocs website using material theme
  2. Do not set the palette
  3. Run mkdocs serve and see the active link not being highlighted

Package versions

  • Python: Python 3.6.1
  • MkDocs: mkdocs, version 0.17.2
  • Material: Version: 2.6.0

Project configuration

Just remove the palette configuration from the mkdocs.yml

System information

  • OS: Windows 10
  • Browser: Chrome, Firefox, Edge
bug

Most helpful comment

Fixed in 94acf18d5dfe72969304a0c37ddd1866aa55ce02, another regression, thanks for reporting. Really need to set up visual regression testing.

All 2 comments

That is indeed a regression. Thanks for reporting, will provide a fix.

Fixed in 94acf18d5dfe72969304a0c37ddd1866aa55ce02, another regression, thanks for reporting. Really need to set up visual regression testing.

Was this page helpful?
0 / 5 - 0 ratings