feat(theme): add option to customize search button text (#713) (#747)

close #713
pull/847/head
rainkolwa 3 years ago committed by GitHub
parent edb370b2d8
commit 00fe8092d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

@ -220,6 +220,7 @@ export namespace DefaultTheme {
searchParameters?: any
disableUserPersonalization?: boolean
initialQuery?: string
buttonText?: string
}
// carbon ads ----------------------------------------------------------------

Loading…
Cancel
Save