Skip to content

Fix ConsoleBlock text & bg in dark mode #3983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions src/components/MDX/ConsoleBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const Box = ({
className?: string;
customStyles?: Record<string, string>;
}) => (
<div
className={className}
style={{width, height, backgroundColor: '#C4C4C4', ...customStyles}}></div>
<div className={className} style={{width, height, ...customStyles}}></div>
);
Box.displayName = 'Box';

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

return (
<div className="mb-4" translate="no">
<div
className="flex w-full rounded-t-lg"
style={{backgroundColor: '#DADEE0'}}>
<div className="px-4 py-2" style={{borderRight: '1px solid #C4C4C4'}}>
<Box width="15px" />
<div className="flex w-full rounded-t-lg bg-gray-200 dark:bg-gray-80">
<div className="px-4 py-2 border-gray-300 dark:border-gray-90 border-r">
<Box className="bg-gray-300 dark:bg-gray-90" width="15px" />
</div>
<div className="flex text-sm px-4">
<div className="border-b-2" style={{borderColor: '#C4C4C4'}}>
<div className="border-b-2 border-gray-300 dark:border-gray-90">
Console
</div>
<div className="px-4 py-2 flex">
<Box className="mr-2" />
<Box className="mr-2 hidden md:block" />
<Box className="hidden md:block" />
<Box className="mr-2 bg-gray-300 dark:bg-gray-90" />
<Box className="mr-2 hidden md:block bg-gray-300 dark:bg-gray-90" />
<Box className="hidden md:block bg-gray-300 dark:bg-gray-90" />
</div>
</div>
</div>
Expand Down