8000 Back-to-top element has no element.style when scrolling up · Issue #3283 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Back-to-top element has no element.style when scrolling up #3283

@lampensau

Description

@lampensau

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

When scrolling upwards the javascript removes the top: 131px element style of the button.

This breaks the positioning when activating navigation.tabs.sticky as the button is partially hidden behind the navigation tabs.

Expected behaviour

The element style for top: on the back-to-top button should not be removed when scrolling upwards.

Actual behaviour

grafik

Potential cause:

Steps to reproduce

Build documentation with the following features:

  features:
    - navigation.tabs.sticky
    - navigation.top

Package versions

  • Python: 3.9.2
  • MkDocs: 1.2.3
  • Material: 8.0.2+insiders.4.1.0

Configuration

site_name: My Docs

theme:
  name: material
  features:
    - navigation.tabs.sticky
    - navigation.top

System information

  • Browser: Chrome, Firefox, Safari

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

      0