Skip to content

Commit

Permalink
Fix table regressions.
Browse files Browse the repository at this point in the history
This PR fixes table block regressions introduced in #7899 (comment)

The block property for the table makes sure that it's mobile responsive. The "display table" is necessary for fixed layout to work.
  • Loading branch information
Joen Asmussen committed Aug 24, 2018
1 parent b61845b commit 593ed5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/table/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.wp-block-table {
// Fixed layout toggle
&.has-fixed-layout tbody {
display: table;
table-layout: fixed;
}
}
1 change: 1 addition & 0 deletions packages/block-library/src/table/theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.wp-block-table {
overflow-x: auto;
display: block; // Necessary in order for this table to be mobile responsive.
border-collapse: collapse;
width: 100%;

Expand Down

0 comments on commit 593ed5e

Please sign in to comment.