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

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

Merged
merged 9 commits into from
Jun 5, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Jun 4, 2020

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

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

src/components/overlay_mask/overlay_mask.tsx Outdated Show resolved Hide resolved
src/components/overlay_mask/overlay_mask.tsx Outdated Show resolved Hide resolved
src/components/overlay_mask/overlay_mask.tsx Outdated Show resolved Hide resolved
@kibanamachine
Copy link

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

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

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

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.

One last thing, otherwise looks great!

src/components/overlay_mask/overlay_mask.tsx Outdated Show resolved Hide resolved
@kibanamachine
Copy link

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

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.

🚀🙌

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@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