Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Apr 15, 2022
1 parent 2b16689 commit ca53c66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function CodeBlockContainer<T extends 'div' | 'pre'>({
className={clsx(
props.className,
styles.codeBlockContainer,
ThemeClassNames.common.codeBlock.container,
ThemeClassNames.common.codeBlock,
)}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import React from 'react';
import clsx from 'clsx';
import {ThemeClassNames} from '@docusaurus/theme-common';
import type {Props} from '@theme/CodeBlock/Line';
import styles from './styles.module.css';

Expand All @@ -31,7 +30,7 @@ export default function CodeBlockLine({
lineProps.className = clsx(
lineProps.className,
styles.highlightedCodeLine,
ThemeClassNames.common.codeBlock.highlightedCodeLine,
'theme-code-block-highlighted-line',
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ export const ThemeClassNames = {
editThisPage: 'theme-edit-this-page',
lastUpdated: 'theme-last-updated',
backToTopButton: 'theme-back-to-top-button',
codeBlock: {
container: 'theme-code-block',
highlightedCodeLine: 'theme-code-block-highlighted-line',
},
codeBlock: 'theme-code-block',
},
layout: {
// TODO add other stable classNames here
Expand Down

0 comments on commit ca53c66

Please sign in to comment.