brand icon indicating copy to clipboard operation
brand copied to clipboard

[Suggestion] Enhance the `Heading` component to support new `text-wrap` values

Open sergioalvz opened this issue 1 year ago • 4 comments

Hello everyone!

A few weeks ago, @simurai shared some insights regarding the text-wrap CSS property and its potential to simplify the adoption of Contentful for specific marketing pages. Currently, we manually break certain heading texts using <br> tags, which poses challenges for migration to Contentful and may introduce localization issues.

The good news is that text-wrap now offers native functionality to address this. You can read more about it here: https://developer.chrome.com/blog/css-wrapped-2023#textwrap.

Would it be possible to consider integrating this property with the Heading component? My suggestion is to introduce a new prop, similar to others like size or weight, which would allow us to pass specific text-wrap values to the component.

Let me know what you think!

sergioalvz avatar Jan 16 '24 12:01 sergioalvz