Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 8 additions & 2 deletions packages/block-library/src/table/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

td,
th {
// stylelint-disable-next-line declaration-property-value-keyword-no-deprecated -- Pending review of overflow-wrap alternative.
word-break: break-word;
word-break: normal;
overflow-wrap: anywhere;
}
}

Expand All @@ -32,6 +32,12 @@
th {
border: $border-width solid;
padding: 0.5em;

// The UA stylesheet sets `overflow-wrap: break-word` on editable
// elements, which would otherwise win over the cell's value.
[contenteditable="true"] {
overflow-wrap: inherit;
}
}

td.is-selected,
Expand Down
8 changes: 4 additions & 4 deletions packages/block-library/src/table/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

td,
th {
// stylelint-disable-next-line declaration-property-value-keyword-no-deprecated -- Pending review of overflow-wrap alternative.
word-break: break-word;
word-break: normal;
overflow-wrap: anywhere;
}
}

Expand All @@ -54,8 +54,8 @@

td,
th {
// stylelint-disable-next-line declaration-property-value-keyword-no-deprecated -- Pending review of overflow-wrap alternative.
word-break: break-word;
word-break: normal;
overflow-wrap: anywhere;
}
}

Expand Down
Loading