ic-design-system icon indicating copy to clipboard operation
ic-design-system copied to clipboard

Side navigation example appearing outside of component preview on small viewport

Open lz405 opened this issue 2 months ago • 0 comments

Summary of the bug

On a small viewport, the side navigation element in the component preview for the React Router variant appears outside of the component preview window

Image

As you can see, there is no side nav in the box, and the side navigation title appears at the top of the page.

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to page: side navigation - code
  2. Click on: set your viewport to mobile with browser developer tools
  3. See the error

🧐 Expected behaviour

The React Router side navigation code preview should appear within the code preview box.

📝 Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given Someone is on a small viewport When They visit the code page for side navigation Then Then the React Router code example should appear in the component preview box

🚨 Urgency (low, medium or high)

High

Additional info

Should just be a case of adding the inline attribute to the side navigation element for the React Router example

lz405 avatar Oct 28 '25 11:10 lz405