Skip to content

Commit a9a4e79

Browse files
committed
fix: Fix theme issue.
1 parent f2cf682 commit a9a4e79

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
.@{w-code-preview} {
3030
border-radius: 3px;
3131
margin-bottom: 16px;
32-
background-color: var(--color-code-preview-bg);
32+
background-color: var(--color-code-preview-bg) !important;
33+
color: transparent !important;
3334
max-height: 420px;
3435
min-height: 12px;
3536
z-index: 10;

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const CodePreview = React.forwardRef<CodePreviewRef, CodePreviewProps>((props, r
191191
}
192192
};
193193
return (
194-
<Split visiable={visiable} className={cls} style={{ flex: 1, ...style }} {...otherProps}>
194+
<Split data-color-mode={theme} visiable={visiable} className={cls} style={{ flex: 1, ...style }} {...otherProps}>
195195
{!noPreview && !onlyEdit && (
196196
<div
197197
className={[

0 commit comments

Comments
 (0)