Redocly / Redocly/redoc

Prevent use of ligatures in code-type text display

Open
#2,267 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently, browsers show font ligatures like suffix and prefix in monospaced font, which looks odd in path parameters, response properties etc.

I suggest adding CSS font-variant-ligatures: none whenever a monospaced font is chosen.

image

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

Locate the CSS rules responsible for monospaced code-type text, including path parameters and response properties. Check the relevant rendered examples in the Redoc interface, then verify that monospaced text disables ligatures without changing ordinary text display.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.