Docusaurus: Sidebar on v2 website needs a background color

Created on 29 May 2019  路  4Comments  路  Source: facebook/docusaurus

馃悰 Bug Report

See screenshot. Using chrome latest.

Screenshot 2019-05-29 16 51 26

bug

Most helpful comment

Nice! My other suggestion would be to hide / move the secondary nav in the situation in the above screenshot

All 4 comments

Thanks for the report Jared! While adding a background color works, it'll be more work to have it play nicely with dark mode and potentially a non-transparent background as well.

The better fix is probably to tweak the .sidebar class and remove the hardcoded width: 20rem. Will fix this!

Nice! My other suggestion would be to hide / move the secondary nav in the situation in the above screenshot

Fixed in #1535 and #1562

How can add different background color for different sidebar. Suppose I have two navbar links. On one link click should show orange background color to sidebar and on another link click should show yellow background color to sidebar.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wez picture wez  路  26Comments

arifszn picture arifszn  路  24Comments

yangshun picture yangshun  路  61Comments

knowbody picture knowbody  路  23Comments

t3573393 picture t3573393  路  25Comments