-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom menu doesn't collapse #6630
Comments
Indeed, thanks for the report. It seems that #6534 introduced this breaking change |
Duplicate of #6591? |
No, that's not the same issue |
Thanks for the quick reply and fix! |
Still have the same problem on 3.18.3. Some global styles helped for me. |
Still have the same problema on 3.18.3.
|
Also got this problem on 3.18.3, sadly. @felipejh , sorry for the noobish question -- how do I apply this globally? I already have a simple global theme to adjust the main colors, which I pass to the TIA. |
I will try to exemplify: 1- const theme: RaThemeOptions = {
overrides: {
RaSidebar: {
fixed: {
position: 'inherit'
}
}
}
}
export { theme } 2- import { theme } ...
<Layout theme={theme}/> 3- <Admin
layout={CustomLayout}
/> |
Thanks for the swift response, @felipejh . 👍 It turns out, I was halfway there. I just needed to nest the Cheers! 🙂 |
I'm trying to add a custom menu following the documentation here: https://marmelab.com/react-admin/Theming.html#using-a-custom-menu. The menu gets displayed ok but when it is collapsed, the text stays visible behind the main content
Open menu:
Closed menu with text visible behind main content:
Codesandbox example:
https://codesandbox.io/s/youthful-fog-h607k?file=/src/App.js
I would expect the collapsing of the menu to be handled by the MenuItemLink component as described here: https://marmelab.com/react-admin/Buttons.html#menuitemlink
I'm not sure what causes the current beahviour
The text was updated successfully, but these errors were encountered: