Make WordPress Core

Changeset 58979


Ignore:
Timestamp:
09/03/2024 08:04:59 PM (2 years ago)
Author:
hellofromTonya
Message:

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.

Location:
branches/6.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.6

  • branches/6.6/src/wp-admin/css/about.css

    r58568 r58979  
    408408.about__container h3,
    409409.about__container h4 {
     410        text-wrap: pretty;
     411        color: inherit;
     412}
     413
     414.about__container :is(h1, h2, h3, h4):lang(en) {
    410415        text-wrap: balance;
    411         color: inherit;
    412416}
    413417
Note: See TracChangeset for help on using the changeset viewer.