diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css index cd609f9917c3..a94c129ff405 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Line/styles.module.css @@ -42,7 +42,7 @@ the background in custom CSS file due bug https://github.com/facebook/docusaurus opacity: 0.4; } -.highlightedCodeLine .codeLineNumber::before { +:global(.theme-code-block-highlighted-line) .codeLineNumber::before { opacity: 0.8; }