Skip to content

Add floats to EuiImage#4209

Merged
snide merged 3 commits intoelastic:masterfrom
snide:image/floats
Nov 2, 2020
Merged

Add floats to EuiImage#4209
snide merged 3 commits intoelastic:masterfrom
snide:image/floats

Conversation

@snide
Copy link
Copy Markdown
Contributor

@snide snide commented Oct 30, 2020

Summary

Adds props for float and margin to EuiImage. This is needed for long-form text content, like documentation where an image compliments the text in an article format.

image

TODO:

  • Drop floats on mobile

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs
  • Added documentation
  • Checked Code Sandbox works for the any docs 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

@kibanamachine
Copy link
Copy Markdown

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

@snide snide requested a review from elizabetdev October 30, 2020 21:52
@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good. 🎉

I tested it locally and the float and margin seem to work as expected.

I just have a suggestion. I think the margin prop might be used out of context and for this reason we should probably rename it.

@snide snide merged commit fcda1ac into elastic:master Nov 2, 2020
@snide snide deleted the image/floats branch November 2, 2020 22:57
cchaos pushed a commit to andreadelrio/eui that referenced this pull request Nov 4, 2020
Adds props for `float` and `margin` to `EuiImage`. This is needed for long-form text content, like documentation where an image compliments the text in an article format.
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.

4 participants