negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

cross button #349

Closed trd-cuizonjesse closed 4 years ago

trd-cuizonjesse commented 4 years ago

is it possible to put the cross button in overlay? and is it possible to override when overlay is clicked? I'm using props to toggle the drawer

trd-cuizonjesse commented 4 years ago

also, can I hide scrollbar?

negomi commented 4 years ago

Hi @trd-cuizonjesse,

is it possible to put the cross button in overlay?

You could position the cross button with CSS to make it look like it's in the overlay, if that's what you mean.

is it possible to override when overlay is clicked?

You can disable the overlay click so it doesn't close the menu, or remove the overlay altogether, depending on what you're trying to do: https://github.com/negomi/react-burger-menu#overlay

can I hide scrollbar?

Which scrollbar do you mean? Inside the menu or the whole page? You can make scrollbars only show when necessary with overflow: auto; but would need to apply this to the element with the undesirable scrollbars.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.