customBurgerIcon overwrites class of the supplied element
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in v2.6.9
why is the class even being overwritten? The overwriting class
.bm-icon
isnt even being used