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(Sheet): multiline support for description #896

Merged
merged 4 commits into from
Sep 26, 2023

Conversation

atabel
Copy link
Collaborator

@atabel atabel commented Sep 22, 2023

jira: WEB-1559

@github-actions
Copy link

github-actions bot commented Sep 22, 2023

Size stats

master this branch diff
Total JS 9.47 MB 9.47 MB +1.08 kB
JS without icons 966 kB 967 kB +1.08 kB
Lib overhead 126 kB 126 kB 0 B
Lib overhead (gzip) 32.4 kB 32.4 kB 0 B

@github-actions
Copy link

github-actions bot commented Sep 22, 2023

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@github-actions
Copy link

github-actions bot commented Sep 22, 2023

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-q4g6jccde-tuentisre.vercel.app

Built with commit abcdb6f.
This pull request is being automatically deployed with vercel-action

@@ -105,7 +105,8 @@ const showRadioListNativeSheet = ({
(nativeSheetImplementation as NativeSheetImplementation)({
title,
subtitle,
description,
// TODO: add multiline support to native sheet
description: Array.isArray(description) ? description.join('\n') : description,
Copy link
Member

Choose a reason for hiding this comment

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

perhaps, you should join with two line breaks, to simulate different paragraphs

Copy link
Member

Choose a reason for hiding this comment

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

also note that:

[].join('\n') returns empty string, but in this case we probably want to set an undefined description.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I want to do some tests with the native implementation and see what happens with \n and \n\n

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tested. It seems to work quite fine with the double \n\n:
image

title,
subtitle,
description,
multilineDescription,
Copy link
Contributor

Choose a reason for hiding this comment

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

multiParagraph name maybe fit better? 🤔

multilineDescription could be this:
image

@atabel atabel requested a review from pladaria September 26, 2023 07:12
@atabel atabel added this pull request to the merge queue Sep 26, 2023
Merged via the queue into master with commit 0c328bf Sep 26, 2023
@atabel atabel deleted the atoledano-multiline-sheet-description branch September 26, 2023 14:11
tuentisre pushed a commit that referenced this pull request Sep 28, 2023
# [14.24.0](v14.23.1...v14.24.0) (2023-09-28)

### Features

* **Sheet:** multiline support for description ([#896](#896)) ([0c328bf](0c328bf))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 14.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants