Skip to content

Commit ef5366d

Browse files
fix(card): move actions to header for smallQuiet card
1 parent a3574f7 commit ef5366d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

1st-gen/packages/card/src/Card.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,16 @@ export class Card extends LikeAnchor(
316316
<div
317317
class="action-button"
318318
@pointerdown=${this.stopPropagationOnHref}
319+
>
320+
<slot name="actions" focusable></slot>
321+
</div>
322+
`
323+
: nothing}
324+
${this.variant === 'quiet' && this.size === 's'
325+
? html`
326+
<div
327+
class="spectrum-QuickActions actions"
328+
@pointerdown=${this.stopPropagationOnHref}
319329
>
320330
<slot name="actions"></slot>
321331
</div>
@@ -359,16 +369,6 @@ export class Card extends LikeAnchor(
359369
</sp-popover>
360370
`
361371
: nothing}
362-
${this.variant === 'quiet' && this.size === 's'
363-
? html`
364-
<div
365-
class="spectrum-QuickActions actions"
366-
@pointerdown=${this.stopPropagationOnHref}
367-
>
368-
<slot name="actions"></slot>
369-
</div>
370-
`
371-
: nothing}
372372
</div>
373373
`;
374374
}

0 commit comments

Comments
 (0)