Skip to content

Commit e4626d4

Browse files
authored
transparent bg color when showing placeholder (#847)
1 parent 65e87fd commit e4626d4

File tree

1 file changed

+4
-1
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response

1 file changed

+4
-1
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Response/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ function Response({ item }: { item: NonNullable<ApiItem> }) {
8888
</div>
8989
<div
9090
style={{
91-
backgroundColor: prismTheme.plain.backgroundColor,
91+
backgroundColor:
92+
code && prettyResponse !== "Fetching..."
93+
? prismTheme.plain.backgroundColor
94+
: "transparent",
9295
paddingLeft: "1rem",
9396
paddingTop: "1rem",
9497
...((prettyResponse === "Fetching..." || !code) && {

0 commit comments

Comments
 (0)