Skip to content

Commit 0db7923

Browse files
committed
Remove background in dark mode
1 parent cb0ff90 commit 0db7923

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/index-page/how-it-works/how-it-works-list-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function HowItWorksListItem({
1313
{text}
1414
{icon}
1515
</div>
16-
<div className="mt-px flex-1 bg-neu-0 text-sm/[21px] md:pl-2 md:pt-2 max-md:[&_code>span]:!pl-0 [&_pre]:border-none [&_pre]:ring-0">
16+
<div className="mt-px flex-1 bg-neu-0 text-sm/[21px] [--cm-background:transparent] md:pl-2 md:pt-2 max-md:[&_code>span]:!pl-0 [&_pre]:border-none [&_pre]:ring-0">
1717
{code}
1818
</div>
1919
</li>

src/components/index-page/how-it-works/interactive-editor.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import { CodeBlockLabel } from "@/components/pre/code-block-label"
99

1010
import { HowItWorksListItem } from "./how-it-works-list-item"
1111
import { PlayButton } from "./play-button"
12-
import { projectsSchema as schema, INITIAL_QUERY_TEXT, INITIAL_RESULTS_TEXT } from "./schema"
13-
14-
12+
import {
13+
projectsSchema as schema,
14+
INITIAL_QUERY_TEXT,
15+
INITIAL_RESULTS_TEXT,
16+
} from "./schema"
1517

1618
export default function InteractiveEditor() {
1719
const [query, setQuery] = useState(INITIAL_QUERY_TEXT)
@@ -91,7 +93,7 @@ export default function InteractiveEditor() {
9193
<div className="flex flex-col border-neu-200 dark:border-neu-50">
9294
<CodeBlockLabel
9395
text="Variables"
94-
className="border-b border-neu-200 bg-[--cm-background] dark:border-neu-50"
96+
className="border-b border-neu-200 bg-transparent dark:border-neu-50"
9597
/>
9698
<VariableEditor
9799
value={variables}

0 commit comments

Comments
 (0)