reactjs / reactjs/react.dev

Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile

Open
#1,089 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

I use Firefox on Android as my main browser and every time I follow a link from Twitter to the React docs, I inevitably can't read them without then copying the link in to Chrome because body has overflow-x: hidden and the .gatsby-highlight code samples don't wrap like they do in other browsers.

An example, broken page is https://reactjs.org/docs/add-react-to-a-website.html

This issue can also be reproduced in desktop Firefox:
image

Personally, I don't think that code samples should wrap and they should have their own horizontal scroll, but I'll leave it up to you which you think is the best course of action. Regardless, I'd be happy to try and fix it, whichever solution you decide on.

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 by reproducing the example page in Firefox on Android or desktop, then inspect the styles for body overflow-x and the .gatsby-highlight code samples. Done means the documentation page remains readable on mobile while code samples either wrap or provide their own horizontal scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react
Domain
documentation, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.