From 00fe8092d9e097d2dd24c06787fcb740310bdda7 Mon Sep 17 00:00:00 2001 From: rainkolwa Date: Thu, 23 Jun 2022 09:15:57 +0800 Subject: [PATCH] feat(theme): add option to customize search button text (#713) (#747) close #713 --- src/client/theme-default/components/VPNavBarSearch.vue | 2 +- types/default-theme.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/components/VPNavBarSearch.vue b/src/client/theme-default/components/VPNavBarSearch.vue index 1d2973a5ff07..58e2c81f247c 100644 --- a/src/client/theme-default/components/VPNavBarSearch.vue +++ b/src/client/theme-default/components/VPNavBarSearch.vue @@ -76,7 +76,7 @@ function load() { stroke-linejoin="round" /> - Search + {{ theme.algolia?.buttonText || 'Search' }} Meta diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index 52503b58c4ea..f19f43950633 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -220,6 +220,7 @@ export namespace DefaultTheme { searchParameters?: any disableUserPersonalization?: boolean initialQuery?: string + buttonText?: string } // carbon ads ----------------------------------------------------------------