Skip to content

Commit

Permalink
ensure code block is in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Nov 27, 2023
1 parent e08844a commit 04778f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/productX/XChartsDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function XChartsDemo() {
</Box>
</Paper>
</Frame.Demo>
<Frame.Info sx={{ maxHeight: 300, overflow: 'auto' }}>
<Frame.Info data-mui-color-scheme="dark" sx={{ maxHeight: 300, overflow: 'auto' }}>
<HighlightedCode copyButtonHidden component={MarkdownElement} code={code} language="jsx" />
</Frame.Info>
</Frame>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/productX/XDateRangeDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default function XDateRangeDemo() {
</LocalizationProvider>
</Paper>
</Frame.Demo>
<Frame.Info sx={{ maxHeight: 300, overflow: 'auto' }}>
<Frame.Info data-mui-color-scheme="dark" sx={{ maxHeight: 300, overflow: 'auto' }}>
<HighlightedCode copyButtonHidden component={MarkdownElement} code={code} language="jsx" />
</Frame.Info>
</Frame>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/productX/XTreeViewDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export default function XDateRangeDemo() {
</TreeView>
</Paper>
</Frame.Demo>
<Frame.Info sx={{ maxHeight: 300, overflow: 'auto' }}>
<Frame.Info data-mui-color-scheme="dark" sx={{ maxHeight: 300, overflow: 'auto' }}>
<HighlightedCode copyButtonHidden component={MarkdownElement} code={code} language="jsx" />
</Frame.Info>
</Frame>
Expand Down

0 comments on commit 04778f1

Please sign in to comment.