From e34214c9d3f594a40c0dd7ba184a66b84352c90d Mon Sep 17 00:00:00 2001 From: emyarod Date: Fri, 15 Jan 2021 11:37:28 -0800 Subject: [PATCH] fix(TooltipDefinition): update `children` PropType (#7437) * fix(TooltipDefinition): allow nodes as children * chore: update snapshots Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap | 2 +- .../react/src/components/TooltipDefinition/TooltipDefinition.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 33016a52039a..b068a2f41ccc 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -6182,7 +6182,7 @@ Map { }, "children": Object { "isRequired": true, - "type": "string", + "type": "node", }, "className": Object { "type": "string", diff --git a/packages/react/src/components/TooltipDefinition/TooltipDefinition.js b/packages/react/src/components/TooltipDefinition/TooltipDefinition.js index 0248a9363be5..14478ac24a9e 100644 --- a/packages/react/src/components/TooltipDefinition/TooltipDefinition.js +++ b/packages/react/src/components/TooltipDefinition/TooltipDefinition.js @@ -101,7 +101,7 @@ TooltipDefinition.propTypes = { * Specify the tooltip trigger text that is rendered to the UI for the user to * interact with in order to display the tooltip. */ - children: PropTypes.string.isRequired, + children: PropTypes.node.isRequired, /** * Specify an optional className to be applied to the container node