No docusaurus sidebar highlighting for elements with code blocks as the title
Created by: quetzaluz
Describe the bug
- I have identified that this is likely not an issue with docusaurus as the default docusaurus sidenav highlighting handles code blocks fine with bold styling
- When focused on a section where the title is a code block, the side nav does not show different styling or highlighting at https://create-react-app.dev/docs/running-tests [was highlighted over
src/setupTests.js
:
Did you try recovering your dependencies?
Yes, N/A, issue repros locally
Which terms did you search for in User Guide?
N/A
Environment
Environment Info:
current version of create-react-app: 3.4.0
running from /Users/laluzc/repos/create-react-app/packages/create-react-app
System:
OS: macOS Mojave 10.14.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Binaries:
Node: 12.12.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Browsers:
Chrome: 80.0.3987.106
Firefox: 73.0
Safari: 13.0.5
npmPackages:
react: 16.12.0
react-dom: 16.12.0
react-scripts: 3.4.0
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
- Browse the React App documentation and find a page where some sections are code for the title, ex https://create-react-app.dev/docs/running-tests
- Scroll over that section
- Notice no sidebar highlighting
Expected behavior
Sidebar section highlighting occurs like other docusaurus apps
Actual behavior
Notice no sidebar highlighting at top of report
Reproducible demo
Reproduced at https://create-react-app.dev/docs/running-tests
This is possibly related to the docusaurus 2 update, taking a bit of a look myself as well.