Skip to content

[Emotion] Convert EuiPortal - #6075

Merged
elizabetdev merged 4 commits into
elastic:mainfrom
elizabetdev:emotion-portal
Jul 28, 2022
Merged

elizabetdev merged 4 commits into
elastic:mainfrom
elizabetdev:emotion-portal

Conversation

@elizabetdev

@elizabetdev elizabetdev commented Jul 26, 2022 •

Copy link
Copy Markdown
Contributor

Summary

This PR moves .euiBody-hasPortalContent styles that used to live in _portal.scss to Emotion EuiGlobalStyles (src/global_styling/reset/global_styles.tsx).

The class name .euiBody-hasPortalContent is currently being used in:

  • src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx
  • src/components/tool_tip/tool_tip_popover.tsx

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

@elizabetdev elizabetdev added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Jul 26, 2022
@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall

Copy link
Copy Markdown
Contributor

An alternative (which would be a breaking change) would be to move the global style to the tooltip & combobox components' render. Constance's investigation in (#6055 (comment)) makes me tend to prefer the approach in this PR to retain the global class name and avoid potential, and unknown, breaks.

@elizabetdev elizabetdev removed the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Jul 28, 2022
@elizabetdev
elizabetdev marked this pull request as ready for review July 28, 2022 10:41
@elizabetdev

Copy link
Copy Markdown
Contributor Author

@chandlerprall this PR is ready for review.

Based on work done in #6055, I'm not completely sure what was the decision regarding the .euiBody-hasPortalContent styles. Happy to close this PR if you want to go on a different path.

@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This satisfies the conversion for EuiPortal and makes the combobox/tooltip dependency on the global style more explicit. When those other components are converted we can revisit if the global classname is what we want vs. moving it into those components on-demand.

@elizabetdev
elizabetdev merged commit 1e9103e into elastic:main Jul 28, 2022
@thompsongl thompsongl mentioned this pull request Jul 28, 2022
49 tasks done
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