Skip to content

[EuiOverlayMask] Prevent duplicate render and allow use in strict mode - #3555

Merged
thompsongl merged 9 commits into
elastic:masterfrom
thompsongl:overlaymask_strict
Jun 5, 2020
Merged

thompsongl merged 9 commits into
elastic:masterfrom
thompsongl:overlaymask_strict

Conversation

@thompsongl

@thompsongl thompsongl commented Jun 4, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #3437 by converting EuiOverlayMask to be a functional component and using lifecycle events (via useEffect) to create and modify DOM elements for React portal use.

Refactor and exposure of props interface, also.

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

@thompsongl
thompsongl requested a review from chandlerprall June 4, 2020 18:05
@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl
thompsongl requested a review from chandlerprall June 5, 2020 17:14
@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing, otherwise looks great!

@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀🙌

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl
thompsongl merged commit 1bc2b29 into elastic:master Jun 5, 2020
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.

Flyout generates two EuiOverlayMask when ownFocus is enabled

3 participants