sindresorhus / sindresorhus/github-markdown-css

BUG: Incorrect RTL styling for list

Open Beginner friendly
#127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
8.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Issue

Currently ul/ol padding is hard-coded to padding-left: 2em;

https://github.com/sindresorhus/github-markdown-css/blob/e49401776c9d581ad42367fc4ea3d677d13e2e39/github-markdown.css#L452-L457

Suggestion

Consider using padding-inline-start instead of padding-left or add a rtl styling.

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

Start in github-markdown.css around lines 452-457, where ul/ol use hard-coded padding-left. Review the existing list styling and change the direction-sensitive padding so RTL lists are positioned correctly. Done means list indentation works for both left-to-right and right-to-left text.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, internationalization
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.