Skip to content

Conversation

traguseo
Copy link

@traguseo traguseo commented Aug 9, 2025

Had a requirement to use dual column Visual Cards on large/medium form factors, but still have the flow be friendly and usable on smaller form factors. There were some clipping and reactivity issues with the visual cards on smaller form factors when using dual columns, so I made the following fixes/changes:

  1. Fixed clipping issues with visual card displays on small form factors
  2. Force 1 column display for visual cards on small form factors, even if user selects 2 columns
  3. Visual cards are now always responsive, the isResponsive selector has been removed from the CPE
  4. Dual column visual cards now always have the same height, the isSameHeight selector has been removed from the CPE

I couldn't think of any scenarios where having non-responsive single column cards or varied height cards in a dual column layout would be desirable, so I deprecated those configuration options and removed them from the CPE. Please correct me if I'm making a bad assumption here!

Before (mobile):
quickChoiceBeforeClippingFix

After (mobile):
quickChoiceAfterClippingFix

Noticed after the fact that prettier ran on this, there wasn't a .prettierrc in the repo though so figured I'd send the PR anyway. First time contributing here so let me know if anything needs adjusted.

Force 1 column display for visual cards on small form factors, even if user selects 2 columns
Visual cards are now always responsive, the isResponsive selector has been removed from the CPE
Dual column visual cards now always have the same height, the isSameHeight selector has been removed from the CPE
@ericrsmith35 ericrsmith35 self-assigned this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants