-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiResizableContainer] Allow dynamic direction
#4557
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
jenkins test this
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
src/components/resizable_container/resizable_collapse_button.tsx
Outdated
Show resolved
Hide resolved
I'd actually love to keep an example in the docs for others to use and to keep track to ensure it continues to behave properly. |
Keep the modifications to the current example, or create a new section? |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
Either, or, just make it clear somwhere that that example exemplifies this behavior. |
src-docs/src/views/resizable_container/resizable_panel_collapsible.js
Outdated
Show resolved
Hide resolved
This reverts commit 55f82af.
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
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.
Works great! Thanks! In a follow up, it'd be great to also maintain the collapsed state when shifting between layouts.
src-docs/src/views/resizable_container/resizable_panel_collapsible_responsive.js
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
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.
Changes LGTM; Tested locally & new example in deployed docs
Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/ |
Summary
Closes #4555 by allowing for changing the
direction
prop and preventing state errors during panel re-registry.See to-be-reverted docs "Simple" example for a demo.
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Props have proper autodocs and playground toggles- [ ] Added documentation- [ ] Added or updated jest tests