Skip to content

Commit

Permalink
card mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Oct 2, 2024
1 parent 48d5fc4 commit a7ac03d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libs/features/mas/web-components/src/variants/ccd-suggested.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ import { html, css } from 'lit';
import { VariantLayout } from './variant-layout';
import { CSS } from './ccd-suggested.css.js';

const AEM_FRAGMENT_MAPPING = {
name: { tag: 'h4', slot: 'detail-m' },
title: { tag: 'h3', slot: 'heading-xs' },
price: { tag: 'p', slot: 'price' },
description: { tag: 'div', slot: 'body-xs' },
cta: { slot: 'cta', size: 's' },
};

export class CCDSuggested extends VariantLayout {

getGlobalCSS() {
return CSS;
}

/* c8 ignore next 3 */
get aemFragmentMapping() {
return AEM_FRAGMENT_MAPPING;
}

renderLayout () {
return html`
<div style="${this.stripStyle}" class="body">
Expand Down

0 comments on commit a7ac03d

Please sign in to comment.