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.


git-svn-id: https://develop.svn.wordpress.org/trunk@54139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-09-12 23:48:15 +00:00
parent 926f3f84a5
commit 1746a68584
2 changed files with 4 additions and 4 deletions
@@ -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 {
@@ -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"] {