-
Notifications
You must be signed in to change notification settings - Fork 101
Conversation
I have tried to do the same thing but the @redocly/ui module (for importing) in the Footer.tsx and Navbar.tsx could not be found. do you also have to import the Footer.tsx somewhere else or is putting it in the _override folder sufficient enough? |
I believe putting it in the |
Hey adamaltan, thanks. I also found it why it didn't want to override the custom Navbar and Footer. I had to restart my whole application to see the change. |
I have a question. Overwriting the NavBar causes it not to be mobile responsive anymore (no hamburger menu anymore). Is there a wrapper we can use to make responsive again and to add the hamburger menu? |
@KasraTabrizi Currently the hamburger would be implemented within your custom NavBar component. I've requested a simple example be added here so you can see. |
@KasraTabrizi I updated this PR with a basic responsive navbar implementation |
Thanks for the change! |
The responsiveness works as it should but the searchbar lost its search functionality. Is there a props I should set to true for the SearchBox component to enable it again? (e.g. |
Oh, yes, you should pass I updated the PR to show how to pass |
It works! Thanks a lot! |
…into navbar-footer-override
Superseded by #223 |
A very basic example of overriding the NavBar and the Footer.
preview
Note: The NavBar doesn't have a background if the location is
/
but the preview is not showing this