Skip to content

Commit

Permalink
Correct ToolTip to Tooltip
Browse files Browse the repository at this point in the history
Co-authored-by: Lena Morita <lena@jaguchi.com>
  • Loading branch information
aaronrobertshaw and mirka committed Mar 28, 2022
1 parent f107a63 commit 6b47fc8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This issue can be solved by rendering popovers to a specific location in the DOM
`Popover.Slot`. For this to work, you will need your use of the `Popover`
component and its `Slot` to be wrapped in a [`SlotFill`](/packages/components/src/slot-fill/README.md) provider.

A `Popover` is also used as the underlying mechanism to display `ToolTip` components.
A `Popover` is also used as the underlying mechanism to display `Tooltip` components.
So the same considerations should be applied to them.

The following example illustrates how you can wrap a component using a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const MyBorderBoxControl = () => {
};
```

To [ensure `ToolTip` positioning](/packages/components/README.md#popovers-and-tooltips)
To [ensure `Tooltip` positioning](/packages/components/README.md#popovers-and-tooltips)
for the `BorderBoxControl`'s color swatches, render your `BorderBoxControl` with
a `Popover.Slot` further up the element tree and within a
`SlotFillProvider` overall.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MyBorderControl = () => {
};
```

To [ensure `ToolTip` positioning](/packages/components/README.md#popovers-and-tooltips)
To [ensure `Tooltip` positioning](/packages/components/README.md#popovers-and-tooltips)
for the `BorderControl`'s color swatches, render your `BorderControl` with a
`Popover.Slot` further up the element tree and within a
`SlotFillProvider` overall.
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/color-palette/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ const MyColorPalette = () => {
} );
```

To [ensure `ToolTip` positioning](/packages/components/README.md#popovers-and-tooltips)
To [ensure `Tooltip` positioning](/packages/components/README.md#popovers-and-tooltips)
when hovering the `ColorPalette`'s swatches, render your `ColorPalette` with a
`Popover.Slot` further up the element tree and within a `SlotFillProvider` overall.

0 comments on commit 6b47fc8

Please sign in to comment.