Skip to content
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

Add panelStyle prop to EuiPopover; Fix EuiTourStep minWidth prop placement #3329

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Apr 15, 2020

Summary

Fixes a bug where passing left or top as part of the EuiPopover style prop would override its internally calculated position.

The passing-through of style to the panel of EuiPopover has only been possible since EuiTourStep was introduced. It should have been a new style object prop, as style was already used on the base div element of EuiPopover.

Adding and using the panelStyle prop solves two problems:

  1. EuiPopover will not have its position overridden
  2. EuiTourStep will more correctly set minWidth on the panel element only (instead of also setting minWidth on a wrapper element)

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox

  • Props have proper autodocs

- [ ] Added documentation examples

- [ ] 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_3329/

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.

Nice! Much better setup

@kibanamachine
Copy link

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

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.

3 participants