Skip to content

Commit

Permalink
Move table CSS to sub object
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 22, 2021
1 parent 4f1ffc2 commit 6b8b6dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blank-canvas-blocks/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions blank-canvas-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@
}
},
"table": {
"typography": {
"fontSize": "var(--wp--preset--font-size--tiny)"
"figcaption": {
"typography": {
"fontSize": "var(--wp--preset--font-size--tiny)"
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion blank-canvas-blocks/sass/blocks/_table.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.wp-block-table {
figcaption {
font-size: var(--wp--custom--table--typography--font-size);
font-size: var(--wp--custom--table--figcaption--typography--font-size);
text-align: center;
}

Expand Down

0 comments on commit 6b8b6dd

Please sign in to comment.