Skip to content

Commit

Permalink
Add callout text color
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Dec 20, 2020
1 parent cc1cf88 commit c2b822d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,13 @@ export const Block: React.FC<Block> = props => {
<div>
<PageIcon block={block} mapImageUrl={mapImageUrl} />
</div>
<div className="notion-callout-text">
<div
className={classNames(
"notion-callout-text",
blockValue.format.block_color &&
`notion-${blockValue.format.block_color}`
)}
>
{renderChildText(blockValue.properties.title)}
</div>
</div>
Expand Down

0 comments on commit c2b822d

Please sign in to comment.