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.

customBurgerIcon overwrites class of the supplied element

See original GitHub issue

I want to use Font Awesome icon but the elements class is overwritten, my workaround:

<Menu styles={styles} customBurgerIcon={ <span><i className='fa fa-cog fa-spin' /></span> }/>

I think ‘bm-icon’ should be appended if the supplied React Element has it’s own class.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
negomicommented, Apr 19, 2019

Fixed in v2.6.9

0reactions
omasbackcommented, Apr 19, 2019

why is the class even being overwritten? The overwriting class .bm-icon isnt even being used

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-burger-menu/README.md at main - GitHub
hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations ...
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