Skip to content

[EuiAspectRatio] Remove sass and replace with inline styles#5818

Merged
snide merged 4 commits intoelastic:mainfrom
snide:emotion_aspect
Apr 20, 2022
Merged

[EuiAspectRatio] Remove sass and replace with inline styles#5818
snide merged 4 commits intoelastic:mainfrom
snide:emotion_aspect

Conversation

@snide
Copy link
Copy Markdown
Contributor

@snide snide commented Apr 19, 2022

Summary

Converts EuiApsectRatio to use the new aspect-ratio css property https://caniuse.com/mdn-css_properties_aspect-ratio

This removed a bit of the css, and since this has no themable elements, it felt best to just convert it completely to inline styles.

Checklist

  • [ ] Checked in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • Updated the Figma library counterpart
  • A changelog entry exists and is marked appropriately

@snide snide marked this pull request as ready for review April 19, 2022 17:53
@snide snide mentioned this pull request Apr 19, 2022
49 tasks
@kibanamachine
Copy link
Copy Markdown

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

@kibanamachine
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

LGTM! I checked a lot of our direct uses in our docs in all three browsers. Yay for plain CSS and yay for reducing div count!

If you update from main, I think CI will pass

@kibanamachine
Copy link
Copy Markdown

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

@snide snide merged commit 657cc80 into elastic:main Apr 20, 2022
@snide snide deleted the emotion_aspect branch April 20, 2022 15:24
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.

3 participants