Skip to content

Commit bed73f1

Browse files
committed
correct action-bar-story
1 parent 34730ba commit bed73f1

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

packages/uui-action-bar/lib/uui-action-bar.story.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
title: 'Buttons/Action Bar',
1212
component: 'uui-action-bar',
1313
args: {
14-
look: 'primary',
14+
look: 'default',
1515
color: 'primary',
1616
},
1717
argTypes: {
@@ -49,16 +49,24 @@ export const AAAOverview: Story = props => html`
4949

5050
AAAOverview.storyName = 'Overview';
5151

52-
export const Single = () =>
53-
html`
52+
export const Single = () => {
53+
const looks = ['default', 'primary', 'secondary', 'outline', 'placeholder'];
54+
55+
return html`
5456
<uui-icon-registry-essential>
55-
<uui-action-bar>
56-
<uui-button label="Delete" look="outline"
57-
><uui-icon name="delete"></uui-icon
58-
></uui-button>
59-
</uui-action-bar>
57+
${looks.map(
58+
look => html`<div
59+
style="display: grid; grid-template-columns: repeat( auto-fill, 120px ); gap: 16px; margin-bottom: 32px">
60+
<uui-action-bar style="justify-self: left;">
61+
<uui-button label="Delete" .look="${look as any}">
62+
<uui-icon name="delete"></uui-icon>
63+
</uui-button>
64+
</uui-action-bar>
65+
</div> `
66+
)}
6067
</uui-icon-registry-essential>
6168
`;
69+
};
6270

6371
export const LooksAndColors = () => {
6472
const looks = ['default', 'primary', 'secondary', 'outline', 'placeholder'];
@@ -76,8 +84,8 @@ export const LooksAndColors = () => {
7684
>${buttons.map(
7785
el => html` <uui-button
7886
label="${el}"
79-
.look="${look}"
80-
.color="${color}">
87+
.look="${look as any}"
88+
.color="${color as any}">
8189
<uui-icon name="${el}"></uui-icon>
8290
</uui-button>`
8391
)}

0 commit comments

Comments
 (0)