Skip to content

Commit 8ec703c

Browse files
simisonsimisont-hamanojasmussen
authored
Components: remove "text-wrap: balance" fallback from Text (WordPress#75089)
Co-authored-by: simison <simison@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
1 parent a98fa51 commit 8ec703c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/components/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Bug Fixes
6+
7+
- `Text`: Remove `text-wrap: balance` fallback. Only `text-wrap: pretty` is now used.
8+
59
### Internal
610

711
- Expose `useDrag` from `@use-gesture/react` package via private API's ([#66735](https://github.com/WordPress/gutenberg/pull/66735)).

packages/components/src/heading/test/__snapshots__/index.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ exports[`props should render correctly 1`] = `
55
color: var(--wp-components-color-foreground, #1e1e1e);
66
line-height: 1.4;
77
margin: 0;
8-
text-wrap: balance;
98
text-wrap: pretty;
109
color: var(--wp-components-color-foreground, #1e1e1e);
1110
font-size: calc(1.95 * 13px);

packages/components/src/text/styles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const Text = css`
1212
color: ${ COLORS.theme.foreground };
1313
line-height: ${ CONFIG.fontLineHeightBase };
1414
margin: 0;
15-
text-wrap: balance; /* Fallback for Safari. */
1615
text-wrap: pretty;
1716
`;
1817

packages/components/src/text/test/__snapshots__/index.tsx.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ exports[`Text should render highlighted words with highlightCaseSensitive 1`] =
2222
color: var(--wp-components-color-foreground, #1e1e1e);
2323
line-height: 1.4;
2424
margin: 0;
25-
text-wrap: balance;
2625
text-wrap: pretty;
2726
font-size: calc((13 / 13) * 13px);
2827
font-weight: normal;
@@ -55,7 +54,6 @@ exports[`Text snapshot tests should render correctly 1`] = `
5554
color: var(--wp-components-color-foreground, #1e1e1e);
5655
line-height: 1.4;
5756
margin: 0;
58-
text-wrap: balance;
5957
text-wrap: pretty;
6058
font-size: calc((13 / 13) * 13px);
6159
font-weight: normal;

0 commit comments

Comments
 (0)