Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update instances of text-wrap: pretty to fall back to balance
  • Loading branch information
jasmussen committed Jun 3, 2024
commit 80a9c8574325e08d03c6679cddb7544499b87a50
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = `
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
font-size: calc((13 / 13) * 13px);
font-weight: normal;
Expand Down Expand Up @@ -347,6 +348,7 @@ exports[`DimensionControl rendering renders with defaults 1`] = `
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
font-size: calc((13 / 13) * 13px);
font-weight: normal;
Expand Down Expand Up @@ -636,6 +638,7 @@ exports[`DimensionControl rendering renders with icon and custom icon label 1`]
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
font-size: calc((13 / 13) * 13px);
font-weight: normal;
Expand Down Expand Up @@ -937,6 +940,7 @@ exports[`DimensionControl rendering renders with icon and default icon label 1`]
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
font-size: calc((13 / 13) * 13px);
font-weight: normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`props should render correctly 1`] = `
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
color: #1e1e1e;
font-size: calc(1.95 * 13px);
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/text/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Text = css`
color: ${ COLORS.gray[ 900 ] };
line-height: ${ CONFIG.fontLineHeightBase };
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ exports[`Text snapshot tests should render correctly 1`] = `
color: #1e1e1e;
line-height: 1.4;
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
font-size: calc((13 / 13) * 13px);
font-weight: normal;
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/post-panel-row/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
.components-button {
max-width: 100%;
text-align: left;
text-wrap: balance; // Fallback for Safari.
text-wrap: pretty;
height: auto;
min-height: $button-size-compact;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@

.components-panel__body-title .components-button {
align-items: flex-start;
text-wrap: balance; // Fallback for Safari.
text-wrap: pretty;
}
}
Expand Down