diff --git a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css index 99d4164572c6b..470fff7b9c6ec 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css @@ -2083,16 +2083,16 @@ table th, padding: calc(0.5 * var(--global--spacing-unit)); } -table.is-style-regular .has-background, -table.is-style-stripes .has-background, -table.is-style-stripes .has-background thead tr, -table.is-style-stripes .has-background tfoot tr, -table.is-style-stripes .has-background tbody tr, -.wp-block-table.is-style-regular .has-background, -.wp-block-table.is-style-stripes .has-background, -.wp-block-table.is-style-stripes .has-background thead tr, -.wp-block-table.is-style-stripes .has-background tfoot tr, -.wp-block-table.is-style-stripes .has-background tbody tr { +table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr, +.wp-block-table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr { color: var(--table--has-background-text-color); } diff --git a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_editor.scss b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_editor.scss index a0c7cfcdbd3fd..1173a4be23791 100644 --- a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_editor.scss +++ b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_editor.scss @@ -15,11 +15,11 @@ table, padding: calc(0.5 * var(--global--spacing-unit)); } - &.is-style-regular .has-background, - &.is-style-stripes .has-background, - &.is-style-stripes .has-background thead tr, - &.is-style-stripes .has-background tfoot tr, - &.is-style-stripes .has-background tbody tr { + &.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr { color: var(--table--has-background-text-color); } diff --git a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_style.scss b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_style.scss index 04173970bd9a6..44ce9677bdda7 100644 --- a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_style.scss +++ b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/table/_style.scss @@ -24,11 +24,11 @@ table, font-size: var(--global--font-size-xs); } - &.is-style-regular .has-background, - &.is-style-stripes .has-background, - &.is-style-stripes .has-background thead tr, - &.is-style-stripes .has-background tfoot tr, - &.is-style-stripes .has-background tbody tr { + &.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, + &.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr { color: var(--table--has-background-text-color); } diff --git a/src/wp-content/themes/twentytwentyone/style-rtl.css b/src/wp-content/themes/twentytwentyone/style-rtl.css index 60276ebc7bc3f..bb0afd2e7e850 100644 --- a/src/wp-content/themes/twentytwentyone/style-rtl.css +++ b/src/wp-content/themes/twentytwentyone/style-rtl.css @@ -3422,16 +3422,16 @@ table figcaption, font-size: var(--global--font-size-xs); } -table.is-style-regular .has-background, -table.is-style-stripes .has-background, -table.is-style-stripes .has-background thead tr, -table.is-style-stripes .has-background tfoot tr, -table.is-style-stripes .has-background tbody tr, -.wp-block-table.is-style-regular .has-background, -.wp-block-table.is-style-stripes .has-background, -.wp-block-table.is-style-stripes .has-background thead tr, -.wp-block-table.is-style-stripes .has-background tfoot tr, -.wp-block-table.is-style-stripes .has-background tbody tr { +table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr, +.wp-block-table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr { color: var(--table--has-background-text-color); } diff --git a/src/wp-content/themes/twentytwentyone/style.css b/src/wp-content/themes/twentytwentyone/style.css index 6fd50f253702a..4dadfb6814846 100644 --- a/src/wp-content/themes/twentytwentyone/style.css +++ b/src/wp-content/themes/twentytwentyone/style.css @@ -3444,16 +3444,16 @@ table figcaption, font-size: var(--global--font-size-xs); } -table.is-style-regular .has-background, -table.is-style-stripes .has-background, -table.is-style-stripes .has-background thead tr, -table.is-style-stripes .has-background tfoot tr, -table.is-style-stripes .has-background tbody tr, -.wp-block-table.is-style-regular .has-background, -.wp-block-table.is-style-stripes .has-background, -.wp-block-table.is-style-stripes .has-background thead tr, -.wp-block-table.is-style-stripes .has-background tfoot tr, -.wp-block-table.is-style-stripes .has-background tbody tr { +table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr, +.wp-block-table.is-style-regular:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color), +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) thead tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tfoot tr, +.wp-block-table.is-style-stripes:not(.has-text-color) .has-background:not(.has-text-color) tbody tr { color: var(--table--has-background-text-color); }