Redocly / Redocly/redoc

H1 in markdown block uses colors.primary.main instead of colors.text.primary

Open Beginner friendly
#2,767 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

Describe the bug
H1 headers in markdown bodies has its color property set to colors.primary.main.

Expected behavior
H1 headers in markdown bodies should have its color property set to colors.text.primary.

Screenshots
Image

Additional context
Code from src/components/Markdown/styledelements.tsx confirms that H1 has its color property set to colors.primary.main while H2 has its color property set to colors.text.primary.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open src/components/Markdown/styledelements.tsx and compare the H1 and H2 style definitions, focusing on their color properties. Verify the rendered H1 color against the expected text color and run the repository's relevant checks if available; done means H1 markdown uses the same intended text-color token as described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.