From 756c93f3caba6303ff7d1e2940d955453873b43c Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Tue, 18 Oct 2022 11:55:43 +0100 Subject: [PATCH 1/3] Apply table borders on front end --- packages/block-library/src/table/style.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-library/src/table/style.scss b/packages/block-library/src/table/style.scss index ffc7ad266c6f72..9ff70890793e1d 100644 --- a/packages/block-library/src/table/style.scss +++ b/packages/block-library/src/table/style.scss @@ -11,6 +11,12 @@ width: 100%; } + // Match default border style to default style in editor + td, + th { + border: $border-width solid; + } + // Fixed layout toggle .has-fixed-layout { table-layout: fixed; From b57a7797e761b5485eb8f5afcdcc39350e3ad88f Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Tue, 18 Oct 2022 16:25:34 +0100 Subject: [PATCH 2/3] Apply default cell padding to editor and front end --- packages/block-library/src/table/editor.scss | 1 + packages/block-library/src/table/style.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/block-library/src/table/editor.scss b/packages/block-library/src/table/editor.scss index ca6cfc3d0da8cb..f1fbae335748c6 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 9ff70890793e1d..9721513a53eee0 100644 --- a/packages/block-library/src/table/style.scss +++ b/packages/block-library/src/table/style.scss @@ -15,6 +15,7 @@ td, th { border: $border-width solid; + padding: 0.5em; } // Fixed layout toggle From 69d97c8cc8be839d329ec9f7d6d7f8fd692d12de Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Thu, 3 Nov 2022 12:53:44 +0000 Subject: [PATCH 3/3] Remove padding and border from theme.scss --- packages/block-library/src/table/theme.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/block-library/src/table/theme.scss b/packages/block-library/src/table/theme.scss index d1f32ff066e2ac..81558143627876 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; }