Skip to content

Conversation

@cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Aug 22, 2022

Summary

This PR is a follow-up to #6124, by removing the _utility.scss file completely (removing .euiIEFlexWrapFix) and removing the internetExplorerOnly() mixin.

This PR also removes several fairly innocuous IE fallbacks/workarounds. There are more in the codebase, but I decided to open multiple PRs rather than just one. The next PR will handle IE flex fallbacks/workarounds specifically, and a 3rd PR will handle IE fallbacks/workarounds in our JS code.

Components to QA

  • .eui-textTruncate
  • EuiBasicTable (text word breaking and text truncation)
  • EuiCard
  • EuiFlex
  • EuiFieldSearch
  • EuiListGroup
  • EuiForm (line-height)

Checklist

  • Checked in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

- [ ] 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 accessibility including keyboard-only and screenreader modes
- [ ] Updated the Figma library counterpart

@cee-chen cee-chen added the breaking change PRs with breaking changes. (Don't delete - used for automation) label Aug 22, 2022
@cee-chen cee-chen requested a review from elizabetdev August 22, 2022 19:05
@cee-chen cee-chen marked this pull request as ready for review August 22, 2022 19:05
@kibanamachine
Copy link

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

1 similar comment
@kibanamachine
Copy link

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

- word-wrap: not necessary for modern browsers
  - https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
  - https://caniuse.com/wordwrap (despite the description, all modern browsers support overflow-wrap)

- word-break: break-world: supported by all modern browsers (although it is noted as deprecated/not to be used):
  - https://developer.mozilla.org/en-US/docs/Web/CSS/word-break
  - https://caniuse.com/mdn-css_properties_word-break_break-word

+ Update EuiTable textOnly documentation: word-break works fine on FF
- Many consumers are overriding `width` instead of `flex-basis` at this point for the component, so changing it to flex-basis would cause unnecessary churn
- `width` is also still valid and intuitive to use instead over flex-basis
- the fixed width affects modern browsers as well
- add note of Kibana findings for Emotion conversion
@kibanamachine
Copy link

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

Copy link
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.

I looked at the code changes and LGTM! 🎉

@cee-chen cee-chen merged commit d6cb975 into elastic:main Aug 24, 2022
@cee-chen cee-chen deleted the remove-ie-css branch August 24, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change PRs with breaking changes. (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants