diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Content/styles.module.css b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Content/styles.module.css index 88ba4a7f9a59..b48a28c6438f 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/Content/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/Content/styles.module.css @@ -72,7 +72,7 @@ border-radius: var(--ifm-global-radius); padding: 0.4rem; line-height: 0; - transition: opacity 200ms ease-in-out; + transition: opacity var(--ifm-transition-fast) ease-in-out; opacity: 0; } diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/CopyButton/styles.module.css b/packages/docusaurus-theme-classic/src/theme/CodeBlock/CopyButton/styles.module.css index 776c1960b58f..c9e0ac5a3bfc 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/CopyButton/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/CopyButton/styles.module.css @@ -24,7 +24,7 @@ opacity: inherit; width: inherit; height: inherit; - transition: all 0.15s ease; + transition: all var(--ifm-transition-fast) ease; } .copyButtonSuccessIcon {