Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { Avatar } from '@adobe/spectrum-wc/avatar';
import { AVATAR_VALID_SIZES } from '@adobe/spectrum-wc-core/components/avatar/index.js';

import '@adobe/spectrum-wc/components/avatar/swc-avatar.js';
import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';

// ────────────────
// METADATA
Expand Down Expand Up @@ -231,26 +232,48 @@ export const Disabled: Story = {
// ──────────────────────────────

export const InActionButton: Story = {
// TODO: Replace <button> with <swc-action-button> once that component is migrated to 2nd-gen.
render: (args) => html`
<button
type="button"
style="display:inline-flex;align-items:center;gap:8px;padding:4px 12px;cursor:pointer;"
>
<swc-action-button>
<span
style="display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;"
>
<swc-avatar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be placed in the icon slot instead? ✨

src=${args.src}
alt=""
decorative
size=${args.size}
></swc-avatar>
Jane Doe
</span>
</swc-action-button>
<swc-action-button accessible-label="Jane Doe">
<swc-avatar
src=${args.src}
alt=${args.alt}
alt=""
decorative
size=${args.size}
></swc-avatar>
Jane Doe
</button>
</swc-action-button>
<swc-action-button size="xl">
<span
style="display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;"
>
<swc-avatar src=${args.src} alt="" decorative size="400"></swc-avatar>
Jane Doe
</span>
</swc-action-button>
<swc-action-button size="xl" accessible-label="Jane Doe">
<swc-avatar src=${args.src} alt="" decorative size="400"></swc-avatar>
</swc-action-button>
`,
args: {
src: PLACEHOLDER_SRC,
alt: 'Jane Doe',
size: '100',
},
tags: ['behaviors'],
parameters: {
flexLayout: 'row-wrap',
},
};

// ────────────────────────────────
Expand Down
Loading