Skip to content

Doc Sidebar is covering NavBar Buttons #4826

Closed

Description

@fabrusso

🐛 Bug Report

The navbar in the documentation page is not working.
Is correctly working in the Home page.

I checked the the HTML and It seems that the sidebar containing Doc link has a margin-top that is covering the buttons area.

Have you read the Contributing Guidelines on issues?

yes

To Reproduce

If possible, use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.

(Write your steps here:)

  1. Go to documentation
  2. Try click on navbar "left positioned" button near the logo

Expected behavior

I expect the buttons to redirect me to the url\src

Actual Behavior

Buttons are not clickable

Your Environment

  • Docusaurus version used: @docusaurus/core": "^2.0.0-beta.0
  • Environment name and version: Mozilla for Developers
  • Operating system and version (desktop or mobile): MacOS BigSur

Reproducible Demo

Doc to check:
https://crono.matchplat.io/docs/installation/installation

Current margin of the child DIV:
Schermata 2021-05-21 alle 12 18 34

Parent DIV covering:
Schermata 2021-05-21 alle 12 21 41

Disabling that margin-top:
Schermata 2021-05-21 alle 12 21 47

The Sidebar with no Margin Top and clickable buttons:
Schermata 2021-05-21 alle 12 21 59

Activity

  1. added
    bug
    status: needs triage
    on May 21, 2021
  2. changed the title [-]NavBar button are not clickable[/-] [+]Doc Sidebar is covering NavBar Buttons[/+] on May 21, 2021
  3. lex111 commented on May 21, 2021

    @lex111
    Contributor

    @fabrusso hi, could you please provide a reproducible repo or website link?

  4. fabrusso commented on May 21, 2021

    @fabrusso
    Author
  5. mhwinkler commented on May 21, 2021

    @mhwinkler

    I'm also experiencing this issue, it may be related to CSS minification.

    When using the local server, my /styles.css contains:

    --ifm-z-index-dropdown: 100;
    --ifm-z-index-fixed: 200;
    --ifm-z-index-overlay: 400;

    After a production build, the same lines read:

    --ifm-z-index-dropdown: #100;
    --ifm-z-index-fixed: #200;
    --ifm-z-index-overlay: #400;
  6. lex111 commented on May 21, 2021

    @lex111
    Contributor

    This was fixed in PR cssnano/cssnano#1122 @omgovich thanks for that!

    @fabrusso @mhwinkler we have explicitly bumped the appropriate versions of CSS minification packages, but since we use caret ranges, you can simply reinstall dependencies of your site and remove previous build artifacts by running yarn clear command, after that the issue will be fixed.

  7. ishan-grubtech commented on May 22, 2021

    @ishan-grubtech

    @lex111 when I run npm run start, this fix seems to be working. but when I do an npm run build followed npm run serve it's still broken.

  8. added a commit that references this issue on Jun 3, 2021
  9. rrdelaney commented on Jun 8, 2021

    @rrdelaney

    Also still happening to me 😕

  10. slorber commented on Jun 9, 2021

    @slorber
    Collaborator

    @rrdelaney you are using [email protected], please make sure it's not the case anymore.

    A good way is to re-generate your lockfile by deleting it, it will pick a newer (non-buggy) cssnano version

  11. added
    external
    and removed
    status: needs triage
    on Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugexternal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions