diff --git a/packages/block-library/src/table/editor.scss b/packages/block-library/src/table/editor.scss index ca6cfc3d0da8c..f1fbae335748c 100644 --- a/packages/block-library/src/table/editor.scss +++ b/packages/block-library/src/table/editor.scss @@ -31,6 +31,7 @@ td, th { border: $border-width solid; + padding: 0.5em; } td.is-selected, diff --git a/packages/block-library/src/table/style.scss b/packages/block-library/src/table/style.scss index ffc7ad266c6f7..9721513a53eee 100644 --- a/packages/block-library/src/table/style.scss +++ b/packages/block-library/src/table/style.scss @@ -11,6 +11,13 @@ width: 100%; } + // Match default border style to default style in editor + td, + th { + border: $border-width solid; + padding: 0.5em; + } + // Fixed layout toggle .has-fixed-layout { table-layout: fixed; diff --git a/packages/block-library/src/table/theme.scss b/packages/block-library/src/table/theme.scss index d1f32ff066e2a..8155814362787 100644 --- a/packages/block-library/src/table/theme.scss +++ b/packages/block-library/src/table/theme.scss @@ -11,8 +11,6 @@ td, th { - padding: 0.5em; - border: 1px solid; word-break: normal; }