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] Fix example with duplicate masks & misc cleanup #6290

Merged
merged 3 commits into from
Oct 4, 2022

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Oct 4, 2022

Summary

I noticed while working on #6289 that the 2nd example was rendering two EuiOverlayMasks 🙃 https://eui.elastic.co/v69.0.0/#/utilities/overlay-mask#masks-with-header

This appears to be because we modified EuiFlyout at some point to default to showing a mask and also setting that mask to below.

Checklist

N/A, docs only

- EuiFlyout now uses ownFocus / EuiOverlayMask by default so the current example is loading TWO overlay masks :|

- update example to use a generic mask with `below` set and also show an EuiFlyout example as normal
- remove unnecessary explicit fragments and fn wrappers
@cee-chen cee-chen marked this pull request as ready for review October 4, 2022 21:42
@kibanamachine
Copy link

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

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.

🚀

@cee-chen cee-chen merged commit adfd54b into elastic:main Oct 4, 2022
@cee-chen cee-chen deleted the overlay_examples_fix branch October 4, 2022 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants