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. Reviewed by hellofromTonya. Merges [58976] to the 6.6 branch. Props akshat2802, wildworks, ryelle, sabernhardt, hellofromTonya. Fixes #60892. Built from https://develop.svn.wordpress.org/branches/6.6@58979 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cc7e4357b2
commit
fd299ecfd5
|
@ -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
|
@ -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
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6.2-alpha-58973';
|
||||
$wp_version = '6.6.2-alpha-58979';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue