Skip to content

Commit 8278835

Browse files
committed
fix button story
1 parent 419f9e5 commit 8278835

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

packages/uui-button/lib/uui-button.story.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -241,23 +241,25 @@ Looks.parameters = {
241241
};
242242

243243
export const WithIcon = () => html`
244-
<uui-button look="danger" label="A11Y proper label">
245-
<uui-icon .name=${'bug'}></uui-icon>
246-
</uui-button>
247-
<br />
248-
<br />
249-
<uui-button look="danger" label="A11Y proper label">
250-
<uui-icon .name=${'bug'}></uui-icon>Button with icon
251-
</uui-button>
252-
<br />
253-
<br />
254-
<p>
255-
The default sizing for a button with only an icon is generally too wide,
256-
there please use with the 'compact' attribute.
257-
</p>
258-
<uui-button look="positive" compact label="A11Y proper label">
259-
<uui-icon name="alert"></uui-icon>
260-
</uui-button>
244+
<uui-icon-registry-essential>
245+
<uui-button look="danger" label="A11Y proper label">
246+
<uui-icon .name=${'favorite'}></uui-icon>
247+
</uui-button>
248+
<br />
249+
<br />
250+
<uui-button look="danger" label="A11Y proper label">
251+
<uui-icon .name=${'favorite'}></uui-icon>Button with icon
252+
</uui-button>
253+
<br />
254+
<br />
255+
<p>
256+
The default sizing for a button with only an icon is generally too wide,
257+
there please use with the 'compact' attribute.
258+
</p>
259+
<uui-button look="positive" compact label="A11Y proper label">
260+
<uui-icon name="favorite"></uui-icon>
261+
</uui-button>
262+
</uui-icon-registry-essential>
261263
`;
262264
WithIcon.parameters = {
263265
docs: {

0 commit comments

Comments
 (0)