Skip to content

Commit

Permalink
Update discount price presentation to match jetpack.com (#35424)
Browse files Browse the repository at this point in the history
* Move discounted price to the right

* changelog
  • Loading branch information
CodeyGuyDylan authored Feb 2, 2024
1 parent 8821d6d commit 11a5145
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ const ProductDetailCard = ( {
{ needsPurchase && discountPrice && (
<>
<div className={ styles[ 'price-container' ] }>
<Price value={ discountPrice } currency={ currencyCode } isOld={ false } />
{ discountPrice < price && (
<Price value={ price } currency={ currencyCode } isOld={ true } />
) }
<Price value={ discountPrice } currency={ currencyCode } isOld={ false } />
</div>
<Text className={ styles[ 'price-description' ] }>{ priceDescription }</Text>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
display: flex;
flex-wrap: wrap;
align-items: flex-end;
color: var( --jp-text-color);
color: var( --jp-black );
}

.price {
Expand All @@ -128,7 +128,7 @@
}

&.is-old {
color: var( --jp-gray-20);
color: var( --jp-gray-20 );

&:after {
content: " ";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Small visual change


0 comments on commit 11a5145

Please sign in to comment.