facebook / facebook/docusaurus

Wrong cursor for dropdown type in navbar

Abierto
#8,485 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug status: needs more information
Lenguaje dominante
TypeScript
Estrellas
66.2k
Forks
10k
Merge medio
1 d 3 h
PR fusionados (30 d)
52

Descripción

### Have you read the Contributing Guidelines on issues?

- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-issues).

### Prerequisites

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

### Description

https://user-images.githubusercontent.com/28596581/210117235-d35a56a0-c15c-4c08-8fd6-544e3cda385f.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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.