Skip to content

Commit

Permalink
feat(theme): add option to customize search button text (#713) (#747)
Browse files Browse the repository at this point in the history
close #713
  • Loading branch information
RainKolwa authored Jun 23, 2022
1 parent edb370b commit 00fe809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPNavBarSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function load() {
stroke-linejoin="round"
/>
</svg>
<span class="DocSearch-Button-Placeholder">Search</span>
<span class="DocSearch-Button-Placeholder">{{ theme.algolia?.buttonText || 'Search' }}</span>
</span>
<span class="DocSearch-Button-Keys">
<kbd class="DocSearch-Button-Key" ref="metaKey">Meta</kbd>
Expand Down
1 change: 1 addition & 0 deletions types/default-theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export namespace DefaultTheme {
searchParameters?: any
disableUserPersonalization?: boolean
initialQuery?: string
buttonText?: string
}

// carbon ads ----------------------------------------------------------------
Expand Down

0 comments on commit 00fe809

Please sign in to comment.