WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.4k stars 4.16k forks source link

Post Title: Consider Adding Balanced Line Wrapping Solution #52387

Open iamtakashi opened 1 year ago

iamtakashi commented 1 year ago

@mtias told me about text-wrap: balance(more info) and it's quite something. With that, we could say goodbye to a lone word that is on a line.

How about adding support to post titles? This will improve typography a lot.

Screenshot 2023-07-06 at 17 38 40

from: https://developer.chrome.com/blog/css-text-wrap-balance/

Dhananjay-12 commented 1 year ago

Hii. is this issue open ? I would like to know about this one if its open 😄

kdevnel commented 1 year ago

Hey! This is such a great idea. I also wanted to swing by and mention this proposal for text-wrap: pretty and the discussion around encouraging further exploration of ways to improve typography layouts in browsers.

miksansegundo commented 1 year ago

Chrome v117, the current version, already supports text-wrap: pretty 🎉

richtabor commented 10 months ago

Shouldn't this be a typography setting perhaps, instead of a setting specific to the post title block?

eric-michel commented 4 months ago

Just did a search for text-wrap and found this issue. Would love to see a text-wrap control for the heading and paragraph blocks so text-wrap: balance or text-wrap: pretty could be easily set! Right now we're just using a utility class.