helpscout / hsds-react

Help Scout Design System (HSDS) — React Component Library
MIT License
86 stars 17 forks source link

HSDS-277: Support for Freeform Text Survey #1079

Closed Charca closed 2 years ago

Charca commented 2 years ago

Note: This PR is a copy of https://github.com/helpscout/hsds/pull/6 adapted for hsds-react.

MessageCard

This PR adds support for Freeform Text surveys. Unlike other survey types, this is not a variant. The functionality for submitting text responses was already part of the MessageCard.Survey component, so I've simply added a new isTextOnlySurvey prop to enable it by default as well as adjusting some styles.

CleanShot 2022-08-16 at 14 05 49@2x

How to Test

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a53d88
Status: ✅  Deploy successful!
Preview URL: https://8d5deb55.hsds-react.pages.dev
Branch Preview URL: https://hsds-277-message-card-text-s.hsds-react.pages.dev

View logs

Charca commented 2 years ago

Thank you, @jakubjanczyk! I've copied my update from the other PR here as well 😄