mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
cb4b56dfda
commit
db98f7f8b2
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user