We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d531d12 + cf3b8ab commit 17abb76Copy full SHA for 17abb76
packages/react-notion-x/src/block.tsx
@@ -786,13 +786,14 @@ export const Block: React.FC<BlockProps> = (props) => {
786
?.value as types.TableBlock
787
const order = tableBlock.format?.table_block_column_order
788
const formatMap = tableBlock.format?.table_block_column_format
789
+ const backgroundColor = block.format?.block_color
790
791
if (!tableBlock || !order) {
792
return null
793
}
794
795
return (
- <tr className={cs('notion-simple-table-row', blockId)}>
796
+ <tr className={cs('notion-simple-table-row', backgroundColor && `notion-${backgroundColor}`, blockId)}>
797
{order.map((column) => {
798
const color = formatMap?.[column]?.color
799
0 commit comments