Skip to content

Commit

Permalink
Table Block: Fix margin/padding to include caption in spacing (#68281)
Browse files Browse the repository at this point in the history
* Table Block: Apply margin styles to figure wrapper instead of table element

* Table Block: Use Block Selectors API for margin styles

* Migrate table block to use standardized selectors

Co-authored-by: Infinite-Null <ankitkumarshah@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Co-authored-by: andersnoren <anlino@git.wordpress.org>
  • Loading branch information
5 people authored Dec 27, 2024
1 parent 5c7f039 commit a34eaca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/table/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,14 @@
"width": true
}
},
"__experimentalSelector": ".wp-block-table > table",
"interactivity": {
"clientNavigation": true
}
},
"selectors": {
"root": ".wp-block-table > table",
"spacing": ".wp-block-table"
},
"styles": [
{
"name": "regular",
Expand Down

1 comment on commit a34eaca

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in a34eaca.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12515696785
📝 Reported issues:

Please sign in to comment.