Skip to content

Commit

Permalink
Table Block: Apply borders and padding on both front end and editor (#…
Browse files Browse the repository at this point in the history
…45069)

* Apply table borders on front end
* Apply default cell padding to editor and front end
* Remove padding and border from theme.scss
  • Loading branch information
mikachan committed Nov 4, 2022
1 parent 20e96b2 commit 3c5d618
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/table/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
td,
th {
border: $border-width solid;
padding: 0.5em;
}

td.is-selected,
Expand Down
7 changes: 7 additions & 0 deletions packages/block-library/src/table/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/table/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

td,
th {
padding: 0.5em;
border: 1px solid;
word-break: normal;
}

Expand Down

0 comments on commit 3c5d618

Please sign in to comment.