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

fix(line-chart): adds renderTooltipOutside input to allow for renders in modal #2273

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

lorenzolevy
Copy link
Contributor

@lorenzolevy lorenzolevy commented Sep 23, 2024

Description

Adds outside input onto ebay-line-chart.

Context

Prior to this PR, the outside highcharts configuration hardcoded to true 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

chart

Copy link

changeset-bot bot commented Sep 23, 2024

🦋 Changeset detected

Latest commit: f448c62

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ebay/ebayui-core Patch

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;
Copy link
Contributor

@mikehobi mikehobi Sep 24, 2024

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

Copy link
Contributor Author

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.

@lorenzolevy lorenzolevy changed the title fix(line-chart): adds outside input to allow for renders in modal fix(line-chart): adds renderTooltipOutside input to allow for renders in modal Sep 24, 2024
Copy link
Member

@LuLaValva LuLaValva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@agliga agliga merged commit 514350e into eBay:14.3.0 Sep 25, 2024
3 of 4 checks passed
This was referenced Sep 25, 2024
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.

4 participants