facebook / facebook/docusaurus

`Toggle word wrap` and `Copy` buttons in code examples almost invisible

Aperta
#10,821 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
bug status: needs triage
Lingua principale
TypeScript
Stelle
66.2k
Fork
10k
Merge medio
1g 3h
PR unite (30g)
52

Descrizione

### 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#issues).

### Prerequisites

- [X] 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

`Toggle word wrap` and `Copy` buttons in code examples are almost invisible.

![CleanShot 2025-01-06 at 20 24 45](https://github.com/user-attachments/assets/0be6243e-8d54-46a7-8f6c-d6c246461668)

### Reproducible demo

https://github.com/facebook/docusaurus/tree/main/website

### Steps to reproduce

1. Open https://docusaurus.io/docs/typescript-support#setup
2. Change window size, so the code example doesn't fit on one line
3. Hover on code example

### Expected behavior

`Toggle word wrap` and `Copy` buttons in code examples should have an opaque background.

### Actual behavior

`Toggle word wrap` and `Copy` buttons in code examples have a semi-transparent background and merge with the text.

### Your environment

- Public source code: https://github.com/facebook/docusaurus/tree/main/website
- Public site URL: https://docusaurus.io/
- Docusaurus version used: 3.7.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 131
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS 15.2

### Self-service

- [ ] I'd be willing to fix this bug myself.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.