Skip to content

[EuiPopover] Don't apply willChange to popover after it is done opening & animating#4590

Merged
chandlerprall merged 3 commits intoelastic:masterfrom
chandlerprall:bug/4574-popover-willchange-offsetparent
Mar 3, 2021
Merged

[EuiPopover] Don't apply willChange to popover after it is done opening & animating#4590
chandlerprall merged 3 commits intoelastic:masterfrom
chandlerprall:bug/4574-popover-willchange-offsetparent

Conversation

@chandlerprall
Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall commented Mar 1, 2021

Summary

Draft mode as I've only tested this in Chrome on Mac, but otherwise ready for review.

Fixes #4574. Caroline noticed that the will-change style on the popover panel broke the display: fixed usage by drag&drop. This update dynamically adds will-change only during the popover's initial open animation, removing it after any transitions/animations have finished.

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
    - [ ] Checked Code Sandbox works for the any docs examples
    - [ ] 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
Copy Markdown

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

Copy link
Copy Markdown
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.

👍 LGTM. Thanks for making this change. I checked in Chrome, FF and Safari and they all look crisp and the DnD is visible.

@thompsongl
Copy link
Copy Markdown
Contributor

Tested in Chrome 88, Firefox, Safari, and Edge. Looks good.

@chandlerprall chandlerprall force-pushed the bug/4574-popover-willchange-offsetparent branch from a0fdf68 to 533726b Compare March 2, 2021 20:37
@chandlerprall chandlerprall marked this pull request as ready for review March 2, 2021 20:38
@chandlerprall
Copy link
Copy Markdown
Contributor Author

Tested in Android Chrome & added a changelog.

@kibanamachine
Copy link
Copy Markdown

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

@chandlerprall chandlerprall merged commit 919c5e5 into elastic:master Mar 3, 2021
@chandlerprall chandlerprall deleted the bug/4574-popover-willchange-offsetparent branch March 3, 2021 19:42
@kibanamachine
Copy link
Copy Markdown

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

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.

[EuiDataGrid] Sorting order drag-and-drop doesn't show currently dragging item

4 participants