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.

Built from https://develop.svn.wordpress.org/trunk@54139


git-svn-id: http://core.svn.wordpress.org/trunk@53698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-09-12 23:50:11 +00:00
parent 7c4a64e67b
commit bcdc46c51c
3 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
white-space: pre-line;
}
.wp-block-file .wp-block-file__button:hover,
@ -214,7 +214,7 @@ p.has-drop-cap:not(:focus)::first-letter {
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
white-space: pre-line;
}
.entry-content .wp-block-button__link {

View File

@ -608,7 +608,7 @@ html[lang="th"] .edit-post-visual-editor * {
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
white-space: pre-line;
}
/*--------------------------------------------------------------
@ -735,7 +735,7 @@ table.wp-block-table td:last-child {
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
white-space: pre-line;
}
.wp-block-button .wp-block-button__link[data-is-placeholder-visible="true"] {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-54138';
$wp_version = '6.1-alpha-54139';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.