Skip to content

Commit

Permalink
review comments fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Sep 23, 2024
1 parent 0b1aef8 commit e20123a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
10 changes: 0 additions & 10 deletions libs/features/mas/web-components/src/variants/ccd-suggested.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ merch-card[variant="ccd-suggested"] [slot='heading-xs'] {
}
merch-card[variant="ccd-suggested"] [slot='price'] {
display: flex;
align-items: center;
}
merch-card[variant="ccd-suggested"] [slot='cta'] {
display: flex;
align-items: center;
}
merch-card[variant="ccd-suggested"] [slot='cta'] a {
text-decoration: none;
color: var(--merch-color-grey-60);
Expand Down
34 changes: 25 additions & 9 deletions libs/features/mas/web-components/src/variants/ccd-suggested.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class CCDSuggested extends VariantLayout {
renderLayout () {
return html`
<div style="${this.stripStyle}" class="body">
<div class="top-secton">
<div class="header">
<slot name="icons"></slot>
<div class="header">
<div class="headings">
<slot name="detail-m"></slot>
<slot name="heading-xs"></slot>
</div>
Expand All @@ -40,18 +40,28 @@ export class CCDSuggested extends VariantLayout {
height: auto;
}
:host([variant='ccd-suggested']) .top-secton {
:host([variant='ccd-suggested']) .header {
display: flex;
flex-flow: wrap;
place-self: flex-start;
}
:host([variant='ccd-suggested']) .header {
:host([variant='ccd-suggested']) .headings {
padding-inline-start: var(--consonant-merch-spacing-xxs);
}
:host([variant='ccd-suggested'][strip-size='small']) {
width:
:host([variant='ccd-suggested']) ::slotted([slot='icons']) {
flex-flow: wrap;
place-self: flex-start;
}
:host([variant='ccd-suggested']) ::slotted([slot='heading-xs']) {
font-size: var(--consonant-merch-card-heading-xxs-font-size);
line-height: var(--consonant-merch-card-heading-xxs-line-height);
}
:host([variant='ccd-suggested']) ::slotted([slot='detail-m']) {
color: var(--merch-color-grey-60);
}
:host([variant='ccd-suggested'][strip-size='wide']) ::slotted([slot='body-xs']) {
Expand All @@ -62,11 +72,17 @@ export class CCDSuggested extends VariantLayout {
padding-inline-start: 48px;
}
:host([variant='ccd-suggested']) slot[name='detail-m'] {
flex-flow: wrap;
place-self: flex-start;
:host([variant='ccd-suggested']) ::slotted([slot='price']) {
display: flex;
align-items: center;
}
:host([variant='ccd-suggested']) ::slotted([slot='cta']) {
display: flex;
align-items: center;
}
:host([variant='ccd-suggested']) .footer {
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit e20123a

Please sign in to comment.