design upgrade

This commit is contained in:
Nermin Karic
2026-11-23 00:59:47 +01:00
parent 9e84140474
commit ada6fd857c
198 changed files with 6626 additions and 2539 deletions

View File

@@ -20,16 +20,16 @@ const LineItemPrice = ({
const hasReducedPrice = currentPrice < originalPrice
return (
<div className="flex flex-col gap-x-2 text-ui-fg-subtle items-end">
<div className="flex flex-col gap-x-2 text-muted-foreground items-end">
<div className="text-left">
{hasReducedPrice && (
<>
<p>
{style === "default" && (
<span className="text-ui-fg-subtle">Original: </span>
<span className="text-muted-foreground">Original: </span>
)}
<span
className="line-through text-ui-fg-muted"
className="line-through text-muted-foreground"
data-testid="product-original-price"
>
{convertToLocale({
@@ -39,15 +39,15 @@ const LineItemPrice = ({
</span>
</p>
{style === "default" && (
<span className="text-ui-fg-interactive">
<span className="text-primary">
-{getPercentageDiff(originalPrice, currentPrice || 0)}%
</span>
)}
</>
)}
<span
className={clx("text-base-regular", {
"text-ui-fg-interactive": hasReducedPrice,
className={clx("text-base", {
"text-primary": hasReducedPrice,
})}
data-testid="product-price"
>