Skip to content

Commit f82dcd8

Browse files
committed
Add story with transparent swatches in color picker
1 parent 2aaa94c commit f82dcd8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

packages/uui-color-picker/lib/uui-color-picker.story.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ import '@umbraco-ui/uui-popover-container/lib';
1717
const formats = ['hex', 'rgb', 'hsl', 'hsv'];
1818
const sizes = ['small', 'medium', 'large'];
1919

20+
const swatchesTransparent = [
21+
'rgba(208, 2, 27, 0.5)',
22+
'rgba(245, 166, 35, 0.5)',
23+
'rgba(248, 231, 28, 0.5)',
24+
'rgba(139, 87, 42, 0.5)',
25+
'rgba(126, 211, 33, 0.5)',
26+
'rgba(65, 117, 5, 0.5)',
27+
'rgba(189, 16, 224, 0.5)',
28+
'rgba(144, 19, 254, 0.5)',
29+
'rgba(74, 144, 226, 0.5)',
30+
'rgba(80, 227, 194, 0.5)',
31+
'rgba(184, 233, 134, 0.5)',
32+
'rgba(0, 0, 0, 0.5)',
33+
'rgba(68, 68, 68, 0.5)',
34+
'rgba(136, 136, 136, 0.5)',
35+
'rgba(204, 204, 204, 0.5)',
36+
'rgba(255, 255, 255, 0.5)',
37+
];
38+
2039
const meta: Meta = {
2140
id: 'uui-color-picker',
2241
component: 'uui-color-picker',
@@ -89,3 +108,10 @@ export const NoSwatches: Story = {
89108
swatches: [],
90109
},
91110
};
111+
112+
export const TransparentSwatches: Story = {
113+
args: {
114+
opacity: true,
115+
swatches: swatchesTransparent,
116+
},
117+
};

0 commit comments

Comments
 (0)