Redocly / Redocly/redoc

Bootstrap 5.0+ CSS breaks navigation in React component

Open
#2,080 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
https://codesandbox.io/s/pensive-goldstine-giukpx

It seems that importing Bootstrap CSS (version 5.0+) completely breaks navigation in Redoc React component.

Expected behavior
The navigation sidebar on the left should work as usual.

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 issue in the linked CodeSandbox with Bootstrap 5.0+ imported alongside the Redoc React component. Inspect how the Bootstrap CSS affects the navigation sidebar and verify that the sidebar works as usual without breaking the surrounding component behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.