Page MenuHomePhabricator

[landing] clean up competitor comparison UI
ClosedPublic

Authored by ginsu on Jul 11 2023, 1:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 12:24 PM
Unknown Object (File)
Thu, Apr 11, 9:51 AM
Unknown Object (File)
Thu, Apr 11, 9:51 AM
Unknown Object (File)
Thu, Apr 11, 9:51 AM
Unknown Object (File)
Thu, Apr 11, 9:51 AM
Unknown Object (File)
Mar 27 2024, 11:54 PM
Unknown Object (File)
Feb 12 2024, 9:56 PM
Unknown Object (File)
Feb 10 2024, 2:50 PM

Details

Summary

As I was inputting copy for one of the competitors I came across some modals/elements that were not super clean visaully. Spoke with @ted and he gave me some tips on how to clean things up.

  1. We should make the padding for the modal container 32px all around
  2. The descriptions in the competitor feature comparison modal should not have a min height
  3. The dividers in the competitor feature cards that have are a tad off

Linear task: https://linear.app/comm/issue/ENG-4346/remove-min-height-for-competitor-feature-comparison-modal

Depends on D8176

Test Plan

Please see the screenshots below to see that each point in the summary was addressed:

We should make the padding for the modal container 32px all around

Before:

Screenshot 2023-07-11 at 4.33.20 PM.png (2×3 px, 922 KB)

After:

Screenshot 2023-07-11 at 4.33.34 PM.png (2×3 px, 921 KB)

The descriptions in the competitor feature comparison modal should not have a min height

Before:

Screenshot 2023-07-07 at 4.34.32 PM.png (2×3 px, 916 KB)

After:

Screenshot 2023-07-11 at 4.34.53 PM.png (2×3 px, 860 KB)

The dividers in the competitor feature cards that have are a tad off

Before:

Screenshot 2023-07-11 at 4.13.03 PM.png (2×3 px, 758 KB)

After:

Screenshot 2023-07-11 at 4.35.30 PM.png (2×3 px, 846 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

landing/competitor-feature.css
14 ↗(On Diff #28601)

We use 34px since that is the height of the coming soon badge. Originally the height of the badge was slightly bigger than the height of the text so by setting the container to be the height of the badge everything is now aligned.

ginsu requested review of this revision.Jul 11 2023, 1:43 PM
landing/competitor-feature-card.css
20 ↗(On Diff #28601)

I am not sure if I follow why you moved this here and still passed this to the same exact component, where it was previously defined directly.

Maybe I am missing something obvious, could you clarify?

landing/competitor-feature-card.css
20 ↗(On Diff #28601)

Yea definitely! Sorry I didn't make it clear the first time around.

CompetitorFeature is a base component used in two places: CompetitorFeatureCard and FeatureModal.

Initially when we had min-height: 80px in CompetitorFeature it made it so FeatureModal looked a bit strange:

Screenshot 2023-07-07 at 4.34.32 PM.png (2×3 px, 916 KB)

Because of this, we don't want min-height: 80px in the FeatureModal, but we still want it in CompetitorFeatureCard so that all the dividers in the cards are aligned regardless of length of the feature description:

Screenshot 2023-07-11 at 4.35.30 PM.png (2×3 px, 846 KB)

So I moved min-height: 80px to just the CompetitorFeatureCard and added the extra optional style prop in CompetitorFeature so that the CompetitorFeatureCard can still have the min-height: 80px but FeatureModal won't have it

atul added inline comments.
landing/competitor-feature.css
14 ↗(On Diff #28601)

FWIW, we can add comments to CSS via

/* this is a comment */

if you think it makes sense for this to be annotated inline.

This revision is now accepted and ready to land.Jul 16 2023, 11:29 PM
kamil added inline comments.
landing/competitor-feature-card.css
20 ↗(On Diff #28601)

thanks for the explanation!

This revision was landed with ongoing or failed builds.Aug 8 2023, 2:09 PM
This revision was automatically updated to reflect the committed changes.