Twenty Twenty: Fix Table block default and custom border colors.

On the front end, this changeset restores the theme's default border color when (and only when) the block's text color is the default.
In the editor, these styles repurpose the user-selected color for the border, to match the front.

Props nidhidhandhukiya, sabernhardt, pooja1210, pouicpouic, poena, shailu25, ugyensupport, wasiur195, rajinsharwar, wasiur195, jivygraphics, huzaifaalmesbah, harshgajipara, nicolefurlan, sumitbagthariya16.
Fixes #58022.




Built from https://develop.svn.wordpress.org/trunk@57587


git-svn-id: http://core.svn.wordpress.org/trunk@57088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2024-02-12 10:48:12 +00:00
parent cb4b56dfda
commit db98f7f8b2
5 changed files with 17 additions and 1 deletions

View File

@ -510,6 +510,10 @@
border-color: #dcd7ca;
}
.editor-styles-wrapper .wp-block-table table:where(.has-text-color) * {
border-color: currentColor;
}
.editor-styles-wrapper .wp-block-table tr {
border: none;
}

View File

@ -514,6 +514,10 @@
border-color: #dcd7ca;
}
.editor-styles-wrapper .wp-block-table table:where(.has-text-color) * {
border-color: currentColor;
}
.editor-styles-wrapper .wp-block-table tr {
border: none;
}

View File

@ -3356,6 +3356,10 @@ hr.wp-block-separator {
/* Block: Table ------------------------------ */
.wp-block-table table:where(:not(.has-text-color)) * {
border-color: inherit;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background: #dcd7ca;
}

View File

@ -3376,6 +3376,10 @@ hr.wp-block-separator {
/* Block: Table ------------------------------ */
.wp-block-table table:where(:not(.has-text-color)) * {
border-color: inherit;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background: #dcd7ca;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57586';
$wp_version = '6.5-alpha-57587';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.