Skip to content

Commit

Permalink
MWPW-166012: [CCD - Suggested Cards] Enable ABM text under price (#3520)
Browse files Browse the repository at this point in the history
* MWPW-166012: ABM text styling on suggested card

* updated deps

* Add styling for 'ccd-suggested' variant in merch-card component

* Removed css not required
  • Loading branch information
Axelcureno authored Jan 29, 2025
1 parent 56128d6 commit 2082fe4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion libs/deps/mas/mas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion libs/deps/mas/merch-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,11 @@ merch-card[variant='twp'] merch-offer-select {
line-height: var(--consonant-merch-card-body-xxs-line-height);
}
merch-card[variant="ccd-suggested"] [slot="price"] em {
font-size: var(--consonant-merch-card-body-xxs-font-size);
line-height: var(--consonant-merch-card-body-xxs-line-height);
}
.spectrum--darkest merch-card[variant="ccd-suggested"] {
--consonant-merch-card-background-color:rgb(30, 30, 30);
--consonant-merch-card-heading-xs-color:rgb(239, 239, 239);
Expand Down Expand Up @@ -1531,7 +1536,6 @@ merch-card[variant='twp'] merch-offer-select {
:host([variant='ccd-suggested']) ::slotted([slot='price']) {
font-size: var(--consonant-merch-card-body-xs-font-size);
line-height: var(--consonant-merch-card-body-xs-line-height);
min-width: fit-content;
}
:host([variant='ccd-suggested']) ::slotted([slot='cta']) {
Expand Down
6 changes: 5 additions & 1 deletion libs/features/mas/dist/mas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions libs/features/mas/src/variants/ccd-suggested.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export const CSS = `
line-height: var(--consonant-merch-card-body-xxs-line-height);
}
merch-card[variant="ccd-suggested"] [slot="price"] em {
font-size: var(--consonant-merch-card-body-xxs-font-size);
line-height: var(--consonant-merch-card-body-xxs-line-height);
}
.spectrum--darkest merch-card[variant="ccd-suggested"] {
--consonant-merch-card-background-color:rgb(30, 30, 30);
--consonant-merch-card-heading-xs-color:rgb(239, 239, 239);
Expand Down
1 change: 0 additions & 1 deletion libs/features/mas/src/variants/ccd-suggested.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export class CCDSuggested extends VariantLayout {
:host([variant='ccd-suggested']) ::slotted([slot='price']) {
font-size: var(--consonant-merch-card-body-xs-font-size);
line-height: var(--consonant-merch-card-body-xs-line-height);
min-width: fit-content;
}
:host([variant='ccd-suggested']) ::slotted([slot='cta']) {
Expand Down

0 comments on commit 2082fe4

Please sign in to comment.