From 1003e0e9a30ce781d983cc3c27cf27ac4c56c623 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Tue, 27 Oct 2020 22:56:01 +0300 Subject: [PATCH] refactor(v2): make code blocks accessible from keyboard --- .../src/theme/CodeBlock/index.tsx | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx index c7df008743f5..616a8f698c35 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx @@ -207,18 +207,9 @@ export default ({ )}
-
@@ -244,6 +235,17 @@ export default ({ })}
+ + )}