Skip to content

Commit 7c53e2e

Browse files
committed
fix: Illustration and IllustrationBlock alt color on dark mode
1 parent 68a9343 commit 7c53e2e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/MDX/MDXComponents.tsx

Lines changed: 7 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="rounded-lg"
243243
/>
244244
{caption ? (
245245
<figcaption className="text-center leading-tight mt-4">
@@ -271,7 +271,12 @@ function IllustrationBlock({
271271
const images = imageInfos.map((info, index) => (
272272
<figure key={index}>
273273
<div className="bg-white rounded-lg p-4 flex-1 flex xl:p-6 justify-center items-center my-4">
274-
<img src={info.src} alt={info.alt} height={info.height} />
274+
<img
275+
className="text-primary"
276+
src={info.src}
277+
alt={info.alt}
278+
height={info.height}
279+
/>
275280
</div>
276281
{info.caption ? (
277282
<figcaption className="text-secondary dark:text-secondary-dark text-center leading-tight mt-4">

0 commit comments

Comments
 (0)