From 7c53e2e2e74e494db21180949da6e9767c281a0b Mon Sep 17 00:00:00 2001 From: Alen Ajam Date: Sun, 30 Apr 2023 16:33:16 +0200 Subject: [PATCH] fix: Illustration and IllustrationBlock alt color on dark mode --- src/components/MDX/MDXComponents.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/MDX/MDXComponents.tsx b/src/components/MDX/MDXComponents.tsx index ba531c9f036..d8d160b6b45 100644 --- a/src/components/MDX/MDXComponents.tsx +++ b/src/components/MDX/MDXComponents.tsx @@ -239,7 +239,7 @@ function Illustration({ src={src} alt={alt} style={{maxHeight: 300}} - className="bg-white rounded-lg" + className="rounded-lg" /> {caption ? (
@@ -271,7 +271,12 @@ function IllustrationBlock({ const images = imageInfos.map((info, index) => (
- {info.alt} + {info.alt}
{info.caption ? (