Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Fix: Add-on highlight message overflows and crushes the add-on title (#1335)
Dave Earleydc79472128e6
diff --git a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx b/frontend/src/components/routes/product-widget/SelectProducts/index.tsxindex 8d5f27328..4a5ff048d 100644--- a/frontend/src/components/routes/product-widget/SelectProducts/index.tsx+++ b/frontend/src/components/routes/product-widget/SelectProducts/index.tsx@@ -836,13 +836,13 @@ const SelectProducts = (props: SelectProductsProps) => {return (<div key={addonId}className={classNames('hi-product-addon', addon.is_highlighted && 'hi-product-addon-highlighted')}>+ {addon.is_highlighted && addon.highlight_message && (+ <div className={'hi-product-addon-highlight-message'}>+ {addon.highlight_message}+ </div>+ )}<div className={'hi-product-addon-title'}>{addon.title}- {addon.is_highlighted && addon.highlight_message && (- <span className={'hi-product-addon-highlight-message'}>- {addon.highlight_message}- </span>- )}</div><TieredPricingproductIndex={addonFormIndex}diff --git a/frontend/src/styles/widget/default.scss b/frontend/src/styles/widget/default.scssindex df1022f28..cc62812f9 100644--- a/frontend/src/styles/widget/default.scss+++ b/frontend/src/styles/widget/default.scss@@ -503,33 +503,34 @@}.hi-product-addon-title {- display: flex;- align-items: center;- gap: 8px;font-weight: 600;font-size: 13.5px;margin-bottom: 2px;overflow-wrap: anywhere;}- .hi-product-addon-highlight-message {- background: var(--hi-accent);- color: var(--hi-accent-contrast);- font-size: 10px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.05em;- padding: 2px 8px;- border-radius: 999px;- white-space: nowrap;- }-&.hi-product-addon-highlighted {margin-left: -10px;margin-right: -10px;padding: 8px 10px;border-radius: 10px;+ border: 1px solid color-mix(in srgb, var(--hi-accent) 35%, transparent);background-color: var(--hi-soft-accent);+ overflow: hidden;+ }++ .hi-product-addon-highlight-message {+ background: var(--hi-accent);+ color: var(--hi-accent-contrast);+ font-size: 10.5px;+ font-weight: 700;+ line-height: 1.4;+ text-transform: uppercase;+ letter-spacing: 0.05em;+ text-align: center;+ overflow-wrap: anywhere;+ padding: 4px 10px;+ margin: -8px -10px 8px;}.hi-product-addon-description {