Skip to content

Commit 1bf54f2

Browse files
fix: consoleBlock text & bg in dark mode (#3983)
1 parent ffd8762 commit 1bf54f2

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Diff for: src/components/MDX/ConsoleBlock.tsx

+8-12
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const Box = ({
2525
className?: string;
2626
customStyles?: Record<string, string>;
2727
}) => (
28-
<div
29-
className={className}
30-
style={{width, height, backgroundColor: '#C4C4C4', ...customStyles}}></div>
28+
<div className={className} style={{width, height, ...customStyles}}></div>
3129
);
3230
Box.displayName = 'Box';
3331

@@ -44,20 +42,18 @@ function ConsoleBlock({level = 'info', children}: ConsoleBlockProps) {
4442

4543
return (
4644
<div className="mb-4" translate="no">
47-
<div
48-
className="flex w-full rounded-t-lg"
49-
style={{backgroundColor: '#DADEE0'}}>
50-
<div className="px-4 py-2" style={{borderRight: '1px solid #C4C4C4'}}>
51-
<Box width="15px" />
45+
<div className="flex w-full rounded-t-lg bg-gray-200 dark:bg-gray-80">
46+
<div className="px-4 py-2 border-gray-300 dark:border-gray-90 border-r">
47+
<Box className="bg-gray-300 dark:bg-gray-90" width="15px" />
5248
</div>
5349
<div className="flex text-sm px-4">
54-
<div className="border-b-2" style={{borderColor: '#C4C4C4'}}>
50+
<div className="border-b-2 border-gray-300 dark:border-gray-90">
5551
Console
5652
</div>
5753
<div className="px-4 py-2 flex">
58-
<Box className="mr-2" />
59-
<Box className="mr-2 hidden md:block" />
60-
<Box className="hidden md:block" />
54+
<Box className="mr-2 bg-gray-300 dark:bg-gray-90" />
55+
<Box className="mr-2 hidden md:block bg-gray-300 dark:bg-gray-90" />
56+
<Box className="hidden md:block bg-gray-300 dark:bg-gray-90" />
6157
</div>
6258
</div>
6359
</div>

0 commit comments

Comments
 (0)