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

Added iconProps to EuiIconTip #1420

Merged
merged 8 commits into from
Jan 10, 2019
Merged

Added iconProps to EuiIconTip #1420

merged 8 commits into from
Jan 10, 2019

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Jan 9, 2019

I was running into issues where the icon inside of an EuiIconTip was poorly positioned but I had no way to pass a classname down to the icon as it passed ...rest to the EuiToolTip component.

This adds the iconProps prop to pass an object down to the EuiIcon.

screen shot 2019-01-09 at 12 43 12 pm

Also, I ran into an issue in TS where I was trying to pass EuiToolTip props from EuiIconTip via the ...rest but TS complained becuase the def's didn't inherit any of the EuiToolTip defs. So I think I properly added this. @chandlerprall can you take a look?

Checklist

  • This was checked in mobile
  • This was checked in IE11
  • This was checked in dark mode
  • Any props added have proper autodocs
  • Documentation examples were added
  • A changelog entry exists and is marked appropriately
  • [ ] This was checked for breaking changes and labeled appropriately
  • [ ] Jest tests were updated or added to match the most common scenarios
  • [ ] This was checked against keyboard-only and screenreader scenarios
  • [ ] This required updates to Framer X components

@cchaos cchaos requested a review from chandlerprall January 9, 2019 17:48
@cchaos
Copy link
Contributor Author

cchaos commented Jan 9, 2019

@chandlerprall Ready for another review :)

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.

LGTM, sorry for the delayed approval

@cchaos cchaos merged commit c07d560 into elastic:master Jan 10, 2019
@cchaos cchaos deleted the icon-tip-props branch January 10, 2019 17:06
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.

2 participants