Skip to content

Commit

Permalink
fix(atomic): no break word for product-price + truncate/wrap (#4055)
Browse files Browse the repository at this point in the history
JIRA ticket describes the problem pretty well.

Truncate  + no word break on very small screen: 

<img width="183" alt="image"
src="https://github.com/coveo/ui-kit/assets/1591893/3fae40a9-8170-4ef8-ab2a-c0b7e113c1c1">




https://coveord.atlassian.net/browse/KIT-3232
  • Loading branch information
olamothe authored Jun 7, 2024
1 parent 7d0bddc commit a538557
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export class AtomicProductPrice
this.product?.ec_promo_price < this.product?.ec_price;

return (
<div>
<div class="flex flex-wrap">
<atomic-product-numeric-field-value
class={`mx-1 ${hasPromotionalPrice && 'text-error'}`}
class={`truncate break-keep mx-1 ${hasPromotionalPrice && 'text-error'}`}
field={hasPromotionalPrice ? 'ec_promo_price' : 'ec_price'}
>
<atomic-format-currency
Expand All @@ -46,7 +46,7 @@ export class AtomicProductPrice
</atomic-product-numeric-field-value>
{hasPromotionalPrice && (
<atomic-product-numeric-field-value
class="mx-1 text-xl line-through"
class="truncate break-keep mx-1 text-xl line-through"
field="ec_price"
>
<atomic-format-currency
Expand Down

0 comments on commit a538557

Please sign in to comment.