Skip to content

Commit c2b822d

Browse files
committed
Add callout text color
1 parent cc1cf88 commit c2b822d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/block.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,13 @@ export const Block: React.FC<Block> = props => {
427427
<div>
428428
<PageIcon block={block} mapImageUrl={mapImageUrl} />
429429
</div>
430-
<div className="notion-callout-text">
430+
<div
431+
className={classNames(
432+
"notion-callout-text",
433+
blockValue.format.block_color &&
434+
`notion-${blockValue.format.block_color}`
435+
)}
436+
>
431437
{renderChildText(blockValue.properties.title)}
432438
</div>
433439
</div>

0 commit comments

Comments
 (0)