[EuiImage] Expose full screen state#6504
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6504/ |
elizabetdev
left a comment
There was a problem hiding this comment.
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 👍🏼 |
elizabetdev
left a comment
There was a problem hiding this comment.
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.