-
Notifications
You must be signed in to change notification settings - Fork 122
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
fix(highlighter): hide it when tooltip type is None #482
fix(highlighter): hide it when tooltip type is None #482
Conversation
If the tooltip type is hidden (TooltipType.None) then the tooltip should not be shown. This add the check on the selector and includes also a smoke test. fix elastic#478
Codecov Report
@@ Coverage Diff @@
## master #482 +/- ##
==========================================
+ Coverage 83.76% 83.83% +0.06%
==========================================
Files 158 158
Lines 4706 4720 +14
Branches 953 960 +7
==========================================
+ Hits 3942 3957 +15
+ Misses 749 748 -1
Partials 15 15
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the mergePartial
changes you wanted.
Also looks like the ON_POINTER_MOVE
action is still triggered. Would be nice to prevent that but that can be done some other time.
@@ -112,7 +112,7 @@ export type DefaultSettingsProps = | |||
export const DEFAULT_TOOLTIP_TYPE = TooltipType.VerticalCursor; | |||
export const DEFAULT_TOOLTIP_SNAP = true; | |||
|
|||
export const DEFAULT_SETTINGS_SPEC = { | |||
export const DEFAULT_SETTINGS_SPEC: SettingsSpec = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!
🎉 This PR is included in version 15.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [15.0.3](elastic/elastic-charts@v15.0.2...v15.0.3) (2019-12-05) ### Bug Fixes * **highlighter:** hide it when tooltip type is None ([opensearch-project#482](elastic/elastic-charts#482)) ([f6de794](elastic/elastic-charts@f6de794)), closes [opensearch-project#478](elastic/elastic-charts#478) [opensearch-project#479](elastic/elastic-charts#479)
Summary
If the tooltip type is hidden (TooltipType.None) then the tooltip should not be shown. This add the
check in the selector and includes also a smoke test for all tooltips.
side notes
there was already a test checking if the tooltip was visible or not, but it doesn't include a check if the highlighter was visible or not.
fix #478
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] Any consumer-facing exports were added tosrc/index.ts
(and stories only import from../src
except for test data & storybook)[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Proper documentation or storybook story was added for features that require explanation or tutorials