Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next): use algolia button text from theme config #747

Merged
merged 1 commit into from Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPNavBarSearch.vue
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
Expand Up @@ -191,6 +191,7 @@ export namespace DefaultTheme {
searchParameters?: any
disableUserPersonalization?: boolean
initialQuery?: string
buttonText?: string
}

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