Skip to content

[EuiToolTip] Convert to Emotion styling - #6104

Merged
thompsongl merged 21 commits into
elastic:mainfrom
thompsongl:css-in-js/euitooltip
Sep 7, 2022
Merged

thompsongl merged 21 commits into
elastic:mainfrom
thompsongl:css-in-js/euitooltip

Conversation

@thompsongl

@thompsongl thompsongl commented Aug 3, 2022 •

Copy link
Copy Markdown
Contributor

Summary

  • Updated EuiToolTipPopover to be a function component
  • Added EuiToolTipAnchor and EuiToolTipArrow components
  • EuiToolTip Sass mixins remain

EuiToolTip remains as a class component because of the delicate hide/show logic that the interaction relies on and because it does not actually need to use useEuiTheme. Subcomponents were created and can handle individual styling concerns.

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
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl
thompsongl marked this pull request as ready for review August 31, 2022 16:31
}

setTootipRef: Ref<EuiToolTip> = (node) => {
setTootipRef = (node: ToolTipRef) => {

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 is much nicer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's actually required for functional components, but I left it in after reverting to a class component.

@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.

Changes LGTM, can't find anything misrendered or not acting correctly in the preview. Have a question about one change

@thompsongl
thompsongl merged commit 545b362 into elastic:main Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants