Skip to content

Commit 6f6fcf1

Browse files
committed
fix Illustration and IllustrationBlock alt color on dark mode
1 parent 68a9343 commit 6f6fcf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/MDX/MDXComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function Illustration({
239239
src={src}
240240
alt={alt}
241241
style={{maxHeight: 300}}
242-
className="bg-white rounded-lg"
242+
className="bg-white text-primary rounded-lg"
243243
/>
244244
{caption ? (
245245
<figcaption className="text-center leading-tight mt-4">
@@ -270,7 +270,7 @@ function IllustrationBlock({
270270
);
271271
const images = imageInfos.map((info, index) => (
272272
<figure key={index}>
273-
<div className="bg-white rounded-lg p-4 flex-1 flex xl:p-6 justify-center items-center my-4">
273+
<div className="bg-white text-primary rounded-lg p-4 flex-1 flex xl:p-6 justify-center items-center my-4">
274274
<img src={info.src} alt={info.alt} height={info.height} />
275275
</div>
276276
{info.caption ? (

0 commit comments

Comments
 (0)