Skip to content

Low text contrast in code example dropdown (accessibility issue) #85675

@optanwar

Description

@optanwar

What is the documentation issue?

The text color and background in the code block dropdown (TypeScript/JavaScript selector) have very low contrast, making the text hard to read especially in dark mode.

Steps to reproduce:

Visit the Next.js docs

Scroll to any code example with the TypeScript/JavaScript selector

Notice the dropdown text blends with the background

Expected behavior:
Dropdown text should have higher contrast for better readability and accessibility.

Screenshot:

Image

Additional context:
Improving text contrast will enhance readability and meet accessibility standards.

Is there any context that might help us understand?

Image

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/getting-started/installation

Metadata

Metadata

Assignees

Labels

UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions