question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to swizzle sidebar category caret icon

See original GitHub issue

Edited by @slorber, see https://github.com/facebook/docusaurus/issues/7902#issuecomment-1209598343


Have you read the Contributing Guidelines on issues?

Prerequisites

  • I’m using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Changing the size of the IconArrow doesn’t reflect on site.

Reproducible demo

No response

Steps to reproduce

  1. Swizzle IconArrow
  2. Change size of svg Width and height
  3. IconArrow doesn’t resize

Expected behavior

Expected IconArrow to resize according to size set in index.js

Actual behavior

Nothing, no change.

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I’d be willing to fix this bug myself.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Josh-Cenacommented, Aug 9, 2022

I have a very fancy solution—we can automatically wrap every component when we build our own site, and use a switch on our site which, when enabled, displays a tooltip of the component’s name when you hover over every region.

1reaction
Josh-Cenacommented, Aug 9, 2022

It’s actually hard currently, and I’ve been thinking about what we can do. You would need to eject some higher-level components first, and see what subcomponents they each render. Ref. our docs:

Start with a higher-level component.

At the bare minimum we need to improve the component description. The current one is basically gibberish:

'The arrow icon component

Read more comments on GitHub >

github_iconTop Results From Across the Web

bootstrap sidebar can't get selected item caret icon to rotate by ...
I am trying to create a sidebar with pages hidden under expandable items. If you click the 'contact' item in my example the...
Read more >
@docusaurus/plugin-debug | Yarn - Package Manager
Fix search bar focus bug. When you put the focus on search input, previously the focus will remain although we have clicked to...
Read more >
Sidebar - Docusaurus
This is a sidebars file that exports one sidebar, called mySidebar . It has three top-level items: two categories and one external link....
Read more >
Source - GitHub
... forward doc frontMatter.sidebar_custom_props to linking sidebar category ... [#7739](https://github.com/facebook/docusaurus/pull/7739) docs: swizzle ...
Read more >
Untitled
Moliga family tree, Liliencup facebook, Micro pixel hd, Wind energy icon? ... Disable caret browsing ie9, Junior data scientist resume, Cliff kucine, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found