Merged in fix/SW-2072-ancillary-price-details-ui (pull request #1723)

fix(SW-2072): fix price details on ancillaries

* fix(SW-2072): fix price details on ancillaries


Approved-by: Niclas Edenvin
This commit is contained in:
Bianca Widstam
2025-04-03 12:18:49 +00:00
parent 540a3bb36f
commit 9129e2f468
5 changed files with 16 additions and 6 deletions

View File

@@ -27,10 +27,10 @@ export default function PriceRow({
</div>
<div className={styles.column}>
<Typography variant="Body/Paragraph/mdRegular">
<h2>{label}</h2>
<h2 className={styles.priceText}>{label}</h2>
</Typography>
<Typography variant="Body/Paragraph/mdRegular">
<h2>{value}</h2>
<h2 className={styles.priceText}>{value}</h2>
</Typography>
</div>
</>

View File

@@ -2,3 +2,7 @@
display: flex;
justify-content: space-between;
}
.priceText {
color: var(--Text-Tertiary);
}

View File

@@ -41,7 +41,7 @@ export default function PriceSummary({
{items.map((item) => (
<>
{item.quantityWithCard && (
{!!item.quantityWithCard && (
<PriceRow
title={item.title}
quantity={item.quantityWithCard}
@@ -49,7 +49,7 @@ export default function PriceSummary({
value={formatPrice(intl, item.totalPrice, item.currency)}
/>
)}
{item.quantityWithPoints && (
{!!item.quantityWithPoints && (
<PriceRow
title={item.title}
quantity={item.quantityWithPoints}

View File

@@ -126,7 +126,9 @@ export default function PriceDetails({
</Typography>
{totalPrice && (
<Typography variant="Body/Paragraph/mdRegular">
<p>({intl.formatMessage({ id: "Incl. VAT" })})</p>
<p className={styles.vatText}>
({intl.formatMessage({ id: "Incl. VAT" })})
</p>
</Typography>
)}
</div>

View File

@@ -10,7 +10,7 @@
.totalPriceInclVAT {
display: flex;
gap: var(--Space-x05);
gap: var(--Space-x15);
}
.totalPriceValue {
@@ -18,3 +18,7 @@
gap: var(--Space-x1);
height: 20px;
}
.vatText {
color: var(--Text-Tertiary);
}