-
Notifications
You must be signed in to change notification settings - Fork 840
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
[EuiImage] Expose full screen state #6504
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_6504/ |
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.
Thanks, @shahzad31 for adding this feature. I tested it locally and it works well.
Can you add a changelog entry in /upcoming_changelogs/6504.md
folder with your PR number?
Interesting i thought , change log entries can be automated. I will do it. CI is fialing because of missing changelog? |
It seems that the CI is failing because of:
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6504/ |
Thank you for taking care of those @miukimiu 👍🏼 |
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.
Thanks, @shahzad31. I pushed some prettier fixes and the CL entry.
LGTM! 🎉
## Summary `eui@71.1.0` ⏩ `eui@72.2.0` --- - Added `onFullScreen` callback to expose the `isFullScreen` state of the `EuiImage` ([#6504](elastic/eui#6504)) - Added an extra spacing between the title and subtitle to `EuiTour` ([#6512](elastic/eui#6512)) - Updated `EuiText.blockquote` styles to match the `EuiMarkdownFormat.blockquote` styles ([#6514](elastic/eui#6514)) - Added the `repositionOnScroll` prop to `EuiToolTip` ([#6515](elastic/eui#6515)) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>
Summary
We are using EuiImage full screen state and in some case we needed to show caption only when image is in full screen mode. So we need full screen state to determine that. This PR expose the full screen state of the component via callback.