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" stroke-linejoin="round"
/> />
</svg> </svg>
<span class="DocSearch-Button-Placeholder">Search</span> <span class="DocSearch-Button-Placeholder">{{ theme.algolia?.buttonText || 'Search' }}</span>
</span> </span>
<span class="DocSearch-Button-Keys"> <span class="DocSearch-Button-Keys">
<kbd class="DocSearch-Button-Key" ref="metaKey">Meta</kbd> <kbd class="DocSearch-Button-Key" ref="metaKey">Meta</kbd>

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

Loading…
Cancel
Save