From f7d475a5009777c34c891d08d1a6688a3a8b0fac Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Tue, 12 Nov 2024 15:10:48 +0530 Subject: [PATCH] fix: custom background color for table header --- packages/editor/src/styles/table.css | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/editor/src/styles/table.css b/packages/editor/src/styles/table.css index 2a0140a2bfc..a0fbbe38f83 100644 --- a/packages/editor/src/styles/table.css +++ b/packages/editor/src/styles/table.css @@ -27,10 +27,18 @@ } } -.table-wrapper table th { - font-weight: 500; - text-align: left; - background-color: rgba(var(--color-background-90)); +.table-wrapper table { + th { + font-weight: 500; + text-align: left; + } + + tr[background="none"], + tr:not([background]) { + th { + background-color: rgba(var(--color-background-90)); + } + } } .table-wrapper table .selectedCell {