Skip to content

Commit

Permalink
Help/About: Fix text wrapping on non-English locales.
Browse files Browse the repository at this point in the history
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.



git-svn-id: https://develop.svn.wordpress.org/trunk@58976 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryelle committed Sep 3, 2024
1 parent 13a4d4a commit 37d896a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wp-admin/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 37d896a

Please sign in to comment.