Skip to content

Commit

Permalink
Add note about tooltip position to BorderBoxControl docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Mar 24, 2022
1 parent 90d1636 commit 7b2c7fe
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ const MyBorderBoxControl = () => {
};
```

To [ensure `ToolTip` positioning](https://github.com/WordPress/gutenberg/blob/trunk/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.

## Props

### `colors`: `Array`
Expand Down

0 comments on commit 7b2c7fe

Please sign in to comment.