-
Notifications
You must be signed in to change notification settings - Fork 8.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
Fix EuiBottomBar in serverless #166840
Fix EuiBottomBar in serverless #166840
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@elasticmachine merge upstream |
Can someone from @elastic/kibana-design review this as you are codeowners? thanks! |
@elasticmachine merge upstream |
merge conflict between base and head |
…a into fix-bottom-bar-serverless
@elastic/kibana-design @elastic/appex-sharedux can we please have a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍 Thanks for fixing this!
@ryankeairns @daveyholler @mdefazio Can we get someone's review here please? |
Depends on #167555 |
bdf41d5
to
be9936a
Compare
💚 Build Succeeded
Metrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: cc @nchaulet |
## Summary The latest changes applied [here ](#166840) caused the `KibanaPageTemplate.BottomBar` to not work properly: ![KibanaPageTemplate.BottomBar](https://github.com/elastic/kibana/assets/17747913/5720fb62-1352-4140-b0f6-93c818689660) The `margin-left` should be applied only to `.euiBottomBar--fixed` instead of all `.euiBottomBar`, `--sticky` and `--static` are already positioned correctly to the relative parent, so no margin needs to be applied.
## Summary The latest changes applied [here ](elastic#166840) caused the `KibanaPageTemplate.BottomBar` to not work properly: ![KibanaPageTemplate.BottomBar](https://github.com/elastic/kibana/assets/17747913/5720fb62-1352-4140-b0f6-93c818689660) The `margin-left` should be applied only to `.euiBottomBar--fixed` instead of all `.euiBottomBar`, `--sticky` and `--static` are already positioned correctly to the relative parent, so no margin needs to be applied.
Summary
EuiBottomBar is broken in serverless because of the side nav, the width is not correct and is behind the side nav
For example in Fleet
Expected
Actual
That PR attempt to fix that, the solution is a little hacky with a css attr selector. It probably can be improved by adding a new class to the body when the nav is open in the
withSolutionNav
component, I can do the change if it's the direction we want to go