-
Notifications
You must be signed in to change notification settings - Fork 120
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): clip path unique id #490
fix(highlighter): clip path unique id #490
Conversation
To uniquely identify the clipPath for the highlighter in a multi-chart page, this commit add the chartId to the clipPath id fix elastic#489
Codecov Report
@@ Coverage Diff @@
## master #490 +/- ##
==========================================
+ Coverage 83.82% 83.83% +0.01%
==========================================
Files 158 169 +11
Lines 4723 4875 +152
Branches 961 979 +18
==========================================
+ Hits 3959 4087 +128
- Misses 749 772 +23
- Partials 15 16 +1
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.
🎉 Looks great and does what the PR says, indeed these things need to be globally unique on the page, and the chartId
is unique due to using uuid
🎉 This PR is included in version 15.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [15.0.4](elastic/elastic-charts@v15.0.3...v15.0.4) (2019-12-12) ### Bug Fixes * **highlighter:** clip path unique id ([opensearch-project#490](elastic/elastic-charts#490)) ([896b93e](elastic/elastic-charts@896b93e)), closes [opensearch-project#489](elastic/elastic-charts#489)
Summary
This PR fix the issue of having multiple id with the same value for the highlighter clip path. This commit add the unique
chartId
to the clipPath id.fix #489
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