@@ -31,6 +31,7 @@ import '@spectrum-web-components/asset/sp-asset.js';
31
31
import { Checkbox } from '@spectrum-web-components/checkbox/src/Checkbox' ;
32
32
import '@spectrum-web-components/checkbox/sp-checkbox.js' ;
33
33
import '@spectrum-web-components/quick-actions/sp-quick-actions.js' ;
34
+ import '@spectrum-web-components/divider/sp-divider.js' ;
34
35
import cardStyles from './card.css.js' ;
35
36
import headingStyles from '@spectrum-web-components/styles/heading.js' ;
36
37
import detailStyles from '@spectrum-web-components/styles/detail.js' ;
@@ -220,6 +221,11 @@ export class Card extends LikeAnchor(
220
221
< sp-asset id ="preview " variant =${ ifDefined ( this . asset ) } >
221
222
< slot name ="preview "> </ slot >
222
223
</ sp-asset >
224
+ ${ this . variant !== 'quiet' && ! this . horizontal
225
+ ? html `
226
+ < sp-divider size ="s "> </ sp-divider >
227
+ `
228
+ : html `` }
223
229
` ;
224
230
}
225
231
@@ -228,6 +234,11 @@ export class Card extends LikeAnchor(
228
234
< sp-asset id ="cover-photo " variant =${ ifDefined ( this . asset ) } >
229
235
< slot name ="cover-photo "> </ slot >
230
236
</ sp-asset >
237
+ ${ this . variant !== 'quiet' && ! this . horizontal
238
+ ? html `
239
+ < sp-divider size ="s "> </ sp-divider >
240
+ `
241
+ : html `` }
231
242
` ;
232
243
}
233
244
@@ -259,6 +270,7 @@ export class Card extends LikeAnchor(
259
270
260
271
protected override render ( ) : TemplateResult {
261
272
return html `
273
+ ${ this . renderImage ( ) }
262
274
< div class ="body ">
263
275
< div class ="header ">
264
276
${ this . renderHeading }
@@ -295,7 +307,6 @@ export class Card extends LikeAnchor(
295
307
< slot name ="footer "> </ slot >
296
308
`
297
309
: html `` }
298
- ${ this . renderImage ( ) }
299
310
${ this . toggles
300
311
? html `
301
312
< sp-quick-actions
0 commit comments