Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 Add prop for SQForm questions to support rich text #888

Open
wants to merge 3 commits into
base: epic/style-updates
Choose a base branch
from

Conversation

Mudassar-Raza
Copy link
Contributor

Added support for bulleted list for dropdown questions that were converting to plain text before

BREAKING CHANGE: 🧨 No

Description

Currently SQForm does not support bulleted lists, rather converts questions to plain text.
We need the ability to structure form fields in a way that will allow designers to meet business requirements.

Use case:

We are unable to implement requirements due to SQFormDropdown limitations that would not allow indenting or using bullets in a single form question:

image-20220126-191814

The result is that SQ from converted this into multi-line structure with no ability to format:

image-20220126-191950

Figma Design file:

SC3 DESIGN LIBRARY

Added support for bulleted list for dropdown questions that were
converting to plain text before

BREAKING CHANGE: 🧨 No
Added some spacing between label text and field

BREAKING CHANGE: 🧨 No

✅ Closes: #887
const defaultArgs = {
label: 'State',
label: 'Is there anything else you would like your plan to do for you?',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think changing the default label broke most of the tests for the dropdown component. Can you revert this change and make a second example story with the questions instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laurelbean I have made the suggested changes and the checks are also passed

Created a separate story for the dropdown that has questions

BREAKING CHANGE: 🧨 No

✅ Closes: #887
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.

Add prop for SQForm questions to support rich text
3 participants