Skip to content
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

Remove IE CSS utilities, mixins, and non-flex/sizing fallbacks #6154

Merged
merged 10 commits into from
Aug 24, 2022

Conversation

cee-chen
Copy link
Member

@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 requested a review from miukimiu 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

@miukimiu miukimiu 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants