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

[EuiToolTip] Convert to Emotion styling #6104

Merged
merged 21 commits into from
Sep 7, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Aug 3, 2022

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

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

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@kibanamachine
Copy link

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

@thompsongl thompsongl marked this pull request as ready for review August 31, 2022 16:31
@@ -82,7 +84,7 @@ export class EuiSuperUpdateButton extends Component<
}
}

setTootipRef: Ref<EuiToolTip> = (node) => {
setTootipRef = (node: ToolTipRef) => {
Copy link
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
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.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

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

src/global_styling/mixins/_tool_tip.scss Show resolved Hide resolved
@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