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

Prevent orphans when using Text component #12227

Open
TayKangSheng opened this issue Jun 10, 2024 · 0 comments
Open

Prevent orphans when using Text component #12227

TayKangSheng opened this issue Jun 10, 2024 · 0 comments

Comments

@TayKangSheng
Copy link

TayKangSheng commented Jun 10, 2024

Summary

Add support for text-wrap property on the Text component so that we can prevent orphans in our text.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap

Rationale

We have various banners in our App to guide merchants at different step of their onboarding. We would like to use text-wrap: balance or text-wrap: pretty property on the text in the banners to prevent orphans when rendering the banner in different screen width.

@TayKangSheng TayKangSheng changed the title Support text-wrap on Text component Prevent orphans on Text component Jun 10, 2024
@TayKangSheng TayKangSheng changed the title Prevent orphans on Text component Prevent orphans when using Text component Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant