Make WordPress Core

Changeset 58976


Ignore:
Timestamp:
09/03/2024 06:49:16 PM (5 weeks ago)
Author:
ryelle
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.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/about.css

    r58568 r58976  
    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.