mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
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:
@@ -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"] {
|
||||
|
||||
Reference in New Issue
Block a user