Skip to content

Commit 840a641

Browse files
committed
add warnings to docs
1 parent 869be98 commit 840a641

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

packages/uui-popover-container/lib/uui-popover-container.mdx

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,31 @@ import * as stories from './uui-popover-container.story';
66
# Popover Container
77

88
This component is a container for popovers. It is used to position the popover relative to the target element.
9-
It is also a native popover. So everything descriped in the [Popover documentation](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) applies.
10-
11-
However when used with UUIButton, the popovertargetaction property will not work, and defaults too toggle.
9+
It is also a native popover. So everything descriped in the **[Popover documentation](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)** applies.
1210

11+
<div
12+
style={{
13+
borderLeft: '10px solid #f3d41b',
14+
background: '#f3d41b24',
15+
padding: '0px 12px',
16+
display: 'flex',
17+
}}>
18+
When used with UUIButton or any element that is not a native button or input,
19+
the popovertargetaction property will not work, and defaults too toggle.
20+
</div>
21+
<br />
22+
<div
23+
style={{
24+
borderLeft: '10px solid #e25555',
25+
background: '#e2555512',
26+
padding: '0px 12px',
27+
display: 'flex',
28+
}}>
29+
This is experimental and will not work in all browsers. See **[Popover
30+
documentation](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)**
31+
for more information.
32+
</div>
33+
<br />
1334
## Basic usage
1435

1536
```html

0 commit comments

Comments
 (0)