Help/About: Fix text wrapping on non-English locales.

In [57715], headings on the About pages were given `text-wrap: balance`. This rule causes unexpected breaks in non-latin langauges, e.g., Japanese, Korean. This fix sets the text-wrap to `pretty` for browsers that support it, and uses `balance` for English-only.

Props akshat2802, wildworks, ryelle, sabernhardt, hellofromTonya.
Fixes #60892.


Built from https://develop.svn.wordpress.org/trunk@58976


git-svn-id: http://core.svn.wordpress.org/trunk@58372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryelle 2024-09-03 18:51:12 +00:00
parent 4e167c593d
commit 8d1fb4e25a
5 changed files with 13 additions and 5 deletions

View File

@ -408,10 +408,14 @@
.about__container h2,
.about__container h3,
.about__container h4 {
text-wrap: balance;
text-wrap: pretty;
color: inherit;
}
.about__container :is(h1, h2, h3, h4):lang(en) {
text-wrap: balance;
}
.about__container p {
text-wrap: pretty;
}

File diff suppressed because one or more lines are too long

View File

@ -407,10 +407,14 @@
.about__container h2,
.about__container h3,
.about__container h4 {
text-wrap: balance;
text-wrap: pretty;
color: inherit;
}
.about__container :is(h1, h2, h3, h4):lang(en) {
text-wrap: balance;
}
.about__container p {
text-wrap: pretty;
}

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-58975';
$wp_version = '6.7-alpha-58976';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.