Skip to content

Commit 3d81f84

Browse files
committed
Added a new component to fix bug of text colour not visible in info box during dark mode
1 parent 26a1127 commit 3d81f84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/StyledMarkdown.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@ const StyledMarkdownBlock = ({ markdown }: { markdown: string }) => {
191191
</p>
192192
),
193193
},
194+
195+
AdditionalInfoDiv: {
196+
component: ({children}) => (
197+
<div className='bg-blue-200 border-l-4 border-blue-500 px-4 py-1 relative text-blue-700 dark:bg-slate-700'>
198+
{children}
199+
</div>
200+
),
201+
            },
202+
194203
a: {
195204
component: ({ children, href, title, className }) => {
196205
if (!href) return children;

0 commit comments

Comments
 (0)