Make WordPress Core

Changeset 54139


Ignore:
Timestamp:
09/12/2022 11:48:15 PM (18 months ago)
Author:
audrasjb
Message:

Twenty Seventeen: Ensure long text wraps correctly in the Button Block.

This changeset replaces white-space: nowrap with white-space: preline to ensure long text used in the button block correctly wraps to a second line.

Follow-up to [44148].

Props robertghetau, bhrugesh12, sabernhardt, mukesh27.
Fixes #55783.

Location:
trunk/src/wp-content/themes/twentyseventeen/assets/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/blocks.css

    r52740 r54139  
    138138    -webkit-transition: background-color 0.2s ease-in-out;
    139139    transition: background-color 0.2s ease-in-out;
    140     white-space: nowrap;
     140    white-space: pre-line;
    141141}
    142142
     
    215215    -webkit-transition: background-color 0.2s ease-in-out;
    216216    transition: background-color 0.2s ease-in-out;
    217     white-space: nowrap;
     217    white-space: pre-line;
    218218}
    219219
  • trunk/src/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css

    r50358 r54139  
    609609    -webkit-transition: background-color 0.2s ease-in-out;
    610610    transition: background-color 0.2s ease-in-out;
    611     white-space: nowrap;
     611    white-space: pre-line;
    612612}
    613613
     
    736736    -webkit-transition: background-color 0.2s ease-in-out;
    737737    transition: background-color 0.2s ease-in-out;
    738     white-space: nowrap;
     738    white-space: pre-line;
    739739}
    740740
Note: See TracChangeset for help on using the changeset viewer.