From 49448f97aef544be557fdc5bf17995e9c00b3525 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Thu, 20 Jun 2019 14:59:30 -0700 Subject: [PATCH 1/2] update tooltip docs --- packages/core/src/components/tooltip/tooltip.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/tooltip/tooltip.md b/packages/core/src/components/tooltip/tooltip.md index f7722dbb55..88ed0d84cf 100644 --- a/packages/core/src/components/tooltip/tooltip.md +++ b/packages/core/src/components/tooltip/tooltip.md @@ -31,7 +31,7 @@ prop is not supported. When creating a tooltip, you must specify both: - its _content_ via the `content` prop, and -- its _target_ as a single child element or string. +- its _target_ as a single child element (required if using any of the target props) or string. The content will appear in a contrasting popover when the target is hovered. From 9177cf04b8fd5702e057f25eed2d297a86f64a84 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 27 Jun 2019 11:38:50 -0400 Subject: [PATCH 2/2] Update tooltip.md --- packages/core/src/components/tooltip/tooltip.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/components/tooltip/tooltip.md b/packages/core/src/components/tooltip/tooltip.md index 88ed0d84cf..a93440f4a9 100644 --- a/packages/core/src/components/tooltip/tooltip.md +++ b/packages/core/src/components/tooltip/tooltip.md @@ -31,7 +31,9 @@ prop is not supported. When creating a tooltip, you must specify both: - its _content_ via the `content` prop, and -- its _target_ as a single child element (required if using any of the target props) or string. +- its _target_ as either: + - a single child element, or + - an instrinsic element string identifier (N.B. this doesn't work if you are using any of the target props, so use an element instead, i.e. `
...
` instead of `"div"`). The content will appear in a contrasting popover when the target is hovered.