squidfunk / mkdocs-material

Documentation that simply works
https://squidfunk.github.io/mkdocs-material/
MIT License
20.73k stars 3.52k forks source link

Annotations does not work with the theme feature navigation.instant #3685

Closed superhize closed 2 years ago

superhize commented 2 years ago

Contribution guidelines

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

Description

Annotations (https://squidfunk.github.io/mkdocs-material/reference/annotations/) does not work when the theme feature navigation.instant is enabled.

Expected behaviour

Animations should work as it does in the officiel docs: https://squidfunk.github.io/mkdocs-material/reference/annotations/

Actual behaviour

Annotations does not close as shown in the gif.

Steps to reproduce

  1. Use a clean mkdocs project
  2. Use the material theme with insiders
  3. Enable the theme feature navigation.instant
  4. Enable the markdown extensions pymdownx.superfences, attr_list and md_in_html

Package versions

Configuration

site_name: Irezia - Wiki
repo_name: Irezia-Wiki on GitHub
copyright: "© 2022  Irezia"
docs_dir: docs
theme:
  name: material
  features:
    - navigation.instant
markdown_extensions:
  - pymdownx.superfences
  - attr_list
  - md_in_html

System information

squidfunk commented 2 years ago

Thanks for reporting! Fixed in 72975c7. There was indeed a side effect for annotations when instant loading was enabled. Sorry this took so long – I was on vacation in the meantime 😉

squidfunk commented 2 years ago

Released as part of 8.2.8+insiders-4.12.0.