Skip to content

Commit

Permalink
[core] docs: add caveat about tooltip target element (#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyp authored and adidahiya committed Jun 27, 2019
1 parent 1a6c67c commit c3ee7b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/components/tooltip/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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. `<div>...</div>` instead of `"div"`).

The content will appear in a contrasting popover when the target is hovered.

Expand Down

1 comment on commit c3ee7b8

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

[core] docs: add caveat about tooltip target element (#3620)

Previews: documentation | landing | table

Please sign in to comment.