-
Notifications
You must be signed in to change notification settings - Fork 30
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
EuiNavDrawer isLocked prop does not shift main content to the right #5
Comments
Hi @nandorojo! The EuiNavDrawer by design does not automatically shift content based on the However, we will soon be deprecating EuiNavDrawer for EuiCollapsibleNav which will help with automatically shifting body content based on locked state. Note: This repo is specifically for the Next-JS starter and not where we actually develop EUI. If you need to submit more component-specific issues, I'd recommend doing so in https://github.com/elastic/eui |
Thanks @cchaos. So technically there's nothing to fix for this issue, however I'll leave it open until I've updated the starter to use |
Got it, thank you both for the help! I’ll try out Big fan of your work, thanks for an awesome library. |
So it turns out |
I can close this for now and just lazy-load in |
What
When you pass
isLocked
to theEuiNavDrawer
, you expect the drawer to be stuck and expanded, as explained by this PR and on this forum post.When expanded, the nav drawer should shift the main page content to the right, rather than having the nav drawer overlay the page content.
However, the content does not shift over. Instead, the nav drawer is fixed on top of the page.
Expected Behavior
It should look like this:
Actual Behavior
It actually looks this:
Reproducible Example
src/components/chrome/index.tsx
and passisLocked
prop to theEuiNavDrawer
Thanks for the great work on this. Looking forward to hearing back from you!
The text was updated successfully, but these errors were encountered: