Skip to content

Commit

Permalink
Merge pull request #518 from ably/pricing-cards-cta-and-sizing-fixes
Browse files Browse the repository at this point in the history
[WEB-4025] fix: set min height on pricing cards description, set mobile positioning on section cta
  • Loading branch information
kennethkalmer authored Oct 17, 2024
2 parents aca6b6d + b468cd0 commit 9a7aa62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ably/ui",
"version": "14.7.2",
"version": "14.7.3",
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/core/Pricing/PricingCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const PricingCards = ({
) : null}
</div>
<p
className={`ui-text-p1 ${description.className ?? ""} ${themeColor(description.color ?? "text-neutral-000")} min-h-20`}
className={`ui-text-p1 ${description.className ?? ""} ${themeColor(description.color ?? "text-neutral-000")} min-h-[20px]`}
style={{ height: descriptionHeight }}
>
<span ref={(el) => (descriptionsRef.current[index] = el)}>
Expand Down Expand Up @@ -246,7 +246,7 @@ const PricingCards = ({
<div className="relative -mx-24 flex items-center h-40 overflow-x-hidden">
<FeaturedLink
url={cta.url}
additionalCSS={`absolute sm:-translate-x-120 sm:opacity-0 sm:group-hover:translate-x-24 duration-300 delay-0 sm:group-hover:delay-100 sm:group-hover:opacity-100 transition-[transform,opacity] font-medium ui-text-p3 ${themeColor("text-neutral-500")} hover:${themeColor("text-neutral-000")} cursor-pointer`}
additionalCSS={`absolute translate-x-24 sm:-translate-x-[120px] sm:opacity-0 sm:group-hover:translate-x-24 duration-300 delay-0 sm:group-hover:delay-100 sm:group-hover:opacity-100 transition-[transform,opacity] font-medium ui-text-p3 ${themeColor("text-neutral-500")} hover:${themeColor("text-neutral-000")} cursor-pointer`}
onClick={cta.onClick}
iconColor={themeColor(
listItemColors?.foreground ?? "text-neutral-000",
Expand All @@ -255,7 +255,7 @@ const PricingCards = ({
{cta.text}
</FeaturedLink>
<div
className={`absolute sm:translate-x-24 sm:opacity-100 sm:group-hover:translate-x-120 sm:group-hover:opacity-0 duration-200 delay-100 sm:group-hover:delay-0 transition-[transform,opacity] leading-6 tracking-widen-0.15 font-light text-p3 ${themeColor("text-neutral-800")}`}
className={`absolute hidden sm:block sm:translate-x-24 sm:opacity-100 sm:group-hover:translate-x-[120px] sm:group-hover:opacity-0 duration-200 delay-100 sm:group-hover:delay-0 transition-[transform,opacity] leading-6 tracking-widen-0.15 font-light text-p3 ${themeColor("text-neutral-800")}`}
>
•••
</div>
Expand Down

0 comments on commit 9a7aa62

Please sign in to comment.