Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong cursor for dropdown type in navbar #8485

Open
6 of 7 tasks
ArthurFlag opened this issue Dec 28, 2022 · 2 comments
Open
6 of 7 tasks

Wrong cursor for dropdown type in navbar #8485

ArthurFlag opened this issue Dec 28, 2022 · 2 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs more information There is not enough information to take action on the issue.

Comments

@ArthurFlag
Copy link
Contributor

ArthurFlag commented Dec 28, 2022

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

recording.mov

Create a dropdown entry in the navbar with to or href links, for example:

  {
            label: "Dropdown",
            type: "dropdown",
            position: "left",
            items: [
              {
                label: "Test API",
                to: "/a-link"
              },
              {
                label: "Test API 2",
                to: "/a-link"
              }
            ]
          }

In this case the cursor when hovering over the dropdown is a text cursor instead of a pointing finger.

Reproducible demo

https://codesandbox.io/s/wonderful-leaf-wwdzee?file=/docusaurus.config.js

Steps to reproduce

  1. Have a dropdown in the navbar.
  2. Switch to table width or similar.

Expected behavior

All clickable elements, typically links, should have the same cursor.

Actual behavior

Cursor turns into text selection cursor.

Your environment

No response

Self-service

  • I'd be willing to fix this bug myself.
@ArthurFlag ArthurFlag added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Dec 28, 2022
@ArthurFlag ArthurFlag changed the title Wrong curosor for dropdown type in navbar containing link Wrong cursor for dropdown type in navbar Dec 28, 2022
@slorber
Copy link
Collaborator

slorber commented Dec 29, 2022

Please show a video of the problem. It works as intended for me using your sandbox:

CleanShot.2022-12-29.at.12.43.59.mp4

@slorber slorber added status: needs more information There is not enough information to take action on the issue. status: needs triage This issue has not been triaged by maintainers and removed status: needs triage This issue has not been triaged by maintainers labels Dec 29, 2022
@ArthurFlag
Copy link
Contributor Author

My bad, I forgot an important detail: it's only for widths smaller than the 1000px(ish?) breakpoint. I added a video in the original message and updated the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs more information There is not enough information to take action on the issue.
Projects
None yet
Development

No branches or pull requests

2 participants