reactjs / reactjs/react.dev

BUG - Hidden "FAQ" menu items in sidebar on desktop screen

Open
#5,582 1 comment 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

Issue

Hi, I have noticed an issue with the sidebar section on the desktop screen. The FAQ menu contains two items(Versioning Policy and Virtual DOM and Internals) that are hidden or not shown properly scroll down to the bottom.

Steps To Reproduce

Although there may be different approaches to fix this issue I have found one of them mentioned below. Link of the following code to update.

  • from
    [media.greaterThan('small')]: {
                  position: 'fixed',
                  zIndex: 2,
                  // previous code
                  // height: 'calc(100vh - 60px)',
                  // updated code
                  height: calc(100vh - 110px);
                  overflowY: 'auto',
                  WebkitOverflowScrolling: 'touch',
                  marginRight: -999,
                  paddingRight: 999,
                  backgroundColor: '#f7f7f7',
                  opacity: '1 !important',
                },
    
                [media.size('small')]: {
                 // previous code
                  // height: 'calc(100vh - 40px)',
                  // updated code
                  height: calc(100vh - 110px);
                },
    
                [media.between('medium', 'large')]: {
                 // previous code
                  // height: 'calc(100vh - 50px)',
                  // updated code
                  height: calc(100vh - 110px);
                },
    

The current behavior

react_sidebar

The expected behavior

react_sidebar_e

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 src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js around lines 91-109 and inspect the sidebar height and overflow behavior at desktop and responsive breakpoints. Verify the FAQ entries Versioning Policy and Virtual DOM and Internals remain visible and reachable when scrolling to the bottom on the affected screen sizes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.