-
Notifications
You must be signed in to change notification settings - Fork 842
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
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
There was a problem hiding this 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!
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀🙌
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3555/ |
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- [ ] Added documentation examples- [ ] Added or updated jest tests- [ ] Checked for accessibility including keyboard-only and screenreader modes