@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
2
2
3
3
import './uui-popover-container.element' ;
4
4
import '../../uui-button/lib/index' ;
5
+ import '../../uui-box/lib/index' ;
5
6
import type { UUIPopoverContainerElement } from './uui-popover-container.element' ;
6
7
// import readme from '../README.md?raw';
7
8
import { html } from 'lit' ;
@@ -51,23 +52,47 @@ export const Overview: Story = {
51
52
id ="popover-button "
52
53
popovertarget ="popover-container "
53
54
look ="primary "
54
- style ="margin: 200%; text-wrap: nowrap; ">
55
- open popover
55
+ style ="margin: 200%; text-wrap: nowrap; "
56
+ label ="Open popover ">
57
+ Open popover
56
58
</ uui-button >
57
59
< uui-popover-container
58
60
id ="popover-container "
59
61
popover
60
62
placement =${ args . placement }
61
63
margin =${ args . margin } >
62
64
< div
63
- style ="max-width: 300px; background: white; border: 1px solid black ; border-radius: 4px; box-shadow: 0px 2px 20px -1px rgba(0, 0, 0, 0.21 ); ">
64
- < h2 > This is my popover</ h2 >
65
+ style ="background-color: var(--uui-color-surface); max-width: 400px; box-shadow: var(--uui-shadow-depth-4); padding: var(--uui-size-space-6) ; border-radius: var(--uui-border-radius ); ">
66
+ < h3 > This is my popover</ h3 >
65
67
< p >
66
68
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptatem,
67
69
est. Eius dolorem dolorum praesentium ut impedit recusandae at maiores
68
70
adipisci nulla atque, est consectetur modi porro blanditiis expedita
69
71
rem dolore.
70
72
</ p >
73
+ < uui-button
74
+ id ="popover-button2 "
75
+ popovertarget ="popover-container2 "
76
+ look ="secondary "
77
+ label ="Open another popover ">
78
+ Open another popover
79
+ </ uui-button >
80
+ < uui-popover-container
81
+ id ="popover-container2 "
82
+ popover
83
+ placement =${ args . placement }
84
+ margin =${ args . margin } >
85
+ < div
86
+ style ="background-color: var(--uui-color-surface); max-width: 400px; box-shadow: var(--uui-shadow-depth-4); padding: var(--uui-size-space-6); border-radius: var(--uui-border-radius); ">
87
+ < h3 > This is my second popover</ h3 >
88
+ < p style ="margin-bottom: 0; ">
89
+ Lorem ipsum dolor, sit amet consectetur adipisicing elit.
90
+ Voluptatem, est. Eius dolorem dolorum praesentium ut impedit
91
+ recusandae at maiores adipisci nulla atque, est consectetur modi
92
+ porro blanditiis expedita rem dolore.
93
+ </ p >
94
+ </ div >
95
+ </ uui-popover-container >
71
96
</ div >
72
97
</ uui-popover-container >
73
98
` ,
0 commit comments