-
Notifications
You must be signed in to change notification settings - Fork 103
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(line-chart): adds renderTooltipOutside input to allow for renders in modal #2273
Conversation
🦋 Changeset detectedLatest commit: f448c62 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -40,6 +40,7 @@ interface LineChartInput | |||
"cdn-highcharts-accessibility"?: string; | |||
version?: string; | |||
series: SeriesLineOptions | SeriesLineOptions[]; | |||
outside?: boolean; |
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.
Since this "outside" property only pertains to the tooltip configuration, I'm wondering if this should be renamed to something like tooltipOutside
or renderTooltipOutside
... I'm not quite sure what would make the most sense
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.
I was struggling back and forth on that naming while working on this. I had renderTooltipOutside
initially, and I think it makes sense to go back to that flag naming.
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 good!
Description
Adds
outside
input ontoebay-line-chart
.Context
Prior to this PR, the
outside
highcharts configuration hardcoded totrue
would cause the tooltip to render relative to the whole page rather than to the modal window or chart render. Allowing clients to set this value allows proper rendering of the tooltip + chart in a modal window.References
#2271
Screenshots