Skip to content

[EuiResizableContainer] Allow dynamic direction#4557

Merged
thompsongl merged 9 commits intoelastic:masterfrom
thompsongl:4555-isHorizontal
Feb 24, 2021
Merged

[EuiResizableContainer] Allow dynamic direction#4557
thompsongl merged 9 commits intoelastic:masterfrom
thompsongl:4555-isHorizontal

Conversation

@thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Feb 19, 2021

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

  • Checked in Chrome, Safari, Edge, and Firefox

- [ ] Props have proper autodocs and playground toggles
- [ ] Added documentation

- [ ] Added or updated jest tests

  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

@thompsongl
Copy link
Contributor Author

jenkins test this

Error: Timed out waiting for: http-get://localhost:9999

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

@cchaos
Copy link
Contributor

cchaos commented Feb 22, 2021

See to-be-reverted docs "Simple" example for a demo.

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.

@thompsongl
Copy link
Contributor Author

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?

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

@cchaos
Copy link
Contributor

cchaos commented Feb 22, 2021

Keep the modifications to the current example, or create a new section?

Either, or, just make it clear somwhere that that example exemplifies this behavior.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

Copy link
Contributor

@cchaos cchaos left a 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.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

Copy link
Contributor

@chandlerprall chandlerprall left a 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

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4557/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiResizableContainer] Allow for dynamic prop changes

4 participants