api-ref: added syncing between code tabs (#4786)

* api-ref: added syncing between code tabs

* updated comment

* resolve metadata warning

* fix colors
This commit is contained in:
Shahed Nasser
2023-08-17 10:41:53 +03:00
committed by GitHub
parent 3140b9f140
commit b08337deb7
12 changed files with 472 additions and 69 deletions

View File

@@ -37,7 +37,7 @@ const CodeBlock = ({
...themes.vsDark,
plain: {
...themes.vsDark.plain,
backgroundColor: colorMode === "light" ? "#111827" : "#1B1B1B",
backgroundColor: colorMode === "light" ? "#111827" : "#1E1E1E",
},
}}
code={source.trim()}