From 6cc42a1f17f84d2043ee78c975875d7eab054b29 Mon Sep 17 00:00:00 2001 From: "Jeferson S. Brito" Date: Wed, 12 Oct 2022 17:00:56 -0300 Subject: [PATCH 1/2] fix(theme-classic): hamburger menu control navigation by keyboard --- .../src/theme/Navbar/MobileSidebar/Header/index.tsx | 1 + .../src/theme/Navbar/MobileSidebar/Toggle/index.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx index dfaaee227fa6..9314929db12e 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx @@ -16,6 +16,7 @@ function CloseButton() { return ( ); From 14f4f8916171a97f2313f5531cbfb6eb485f46bc Mon Sep 17 00:00:00 2001 From: "Jeferson S. Brito" Date: Thu, 13 Oct 2022 22:00:56 -0300 Subject: [PATCH 2/2] feat(theme-classic): add translations for mobile menu button --- .../Navbar/MobileSidebar/Header/index.tsx | 7 +++++- .../Navbar/MobileSidebar/Toggle/index.tsx | 8 ++++++- .../locales/ar/theme-common.json | 2 ++ .../locales/base/theme-common.json | 4 ++++ .../locales/bn/theme-common.json | 2 ++ .../locales/cs/theme-common.json | 2 ++ .../locales/da/theme-common.json | 2 ++ .../locales/de/theme-common.json | 2 ++ .../locales/es/theme-common.json | 2 ++ .../locales/fa/theme-common.json | 2 ++ .../locales/fil/theme-common.json | 2 ++ .../locales/fr/theme-common.json | 2 ++ .../locales/he/theme-common.json | 2 ++ .../locales/hi/theme-common.json | 2 ++ .../locales/it/theme-common.json | 2 ++ .../locales/ja/theme-common.json | 2 ++ .../locales/ko/theme-common.json | 2 ++ .../locales/nl/theme-common.json | 2 ++ .../locales/pl/theme-common.json | 2 ++ .../locales/pt-BR/theme-common.json | 2 ++ .../locales/pt-PT/theme-common.json | 2 ++ .../locales/ru/theme-common.json | 2 ++ .../locales/sr/theme-common.json | 2 ++ .../locales/sv/theme-common.json | 2 ++ .../locales/sv/theme-search-algolia.json | 23 +++++++++++++++++++ .../locales/tr/theme-common.json | 2 ++ .../locales/uk/theme-common.json | 2 ++ .../locales/vi/theme-common.json | 2 ++ .../locales/zh-Hans/theme-common.json | 2 ++ .../locales/zh-Hant/theme-common.json | 2 ++ 30 files changed, 92 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx index 9314929db12e..0eb7ca2b511b 100644 --- a/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Navbar/MobileSidebar/Header/index.tsx @@ -7,6 +7,7 @@ import React from 'react'; import {useNavbarMobileSidebar} from '@docusaurus/theme-common/internal'; +import {translate} from '@docusaurus/Translate'; import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle'; import IconClose from '@theme/Icon/Close'; import NavbarLogo from '@theme/Navbar/Logo'; @@ -16,7 +17,11 @@ function CloseButton() { return (