diff --git a/CHANGELOG.md b/CHANGELOG.md
index af42505696..a5061abe18 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,13 +34,14 @@ notes][0.5.0]. **BREAKING CHANGES** are documented below.
- **[Upgraded FontAwesome][]** to v6 from v5. While many icons were renamed, the
v5 names still work. For details about icon renames and more, see [What's
changed][].
+- **Search-box**: the HTML structure and class names have changed, due to the
+ Font Awesome upgrade, for both online and offline search. This may affect your
+ project if you have overridden search styling or scripts.
**Other changes**:
- By default, Docsy now uses the [gtag.js][] analytics library for all site
tags. For details, see [Adding Analytics > Setup][].
-- **Navbar search-box** width is narrower, as a result of the FontAwesome (FA)
- upgrade. In any case, the search-box styling has also been updated.
[Adding Analytics > Setup]: https://www.docsy.dev/docs/adding-content/feedback/#setup
[v4.6.2 release notes]: https://github.com/twbs/bootstrap/releases/tag/v4.6.2
diff --git a/assets/js/offline-search.js b/assets/js/offline-search.js
index 55e8a81caf..ecaa1f36ee 100644
--- a/assets/js/offline-search.js
+++ b/assets/js/offline-search.js
@@ -4,7 +4,7 @@
'use strict';
$(document).ready(function () {
- const $searchInput = $('.td-search-input');
+ const $searchInput = $('.td-search input');
//
// Options for popover
@@ -14,7 +14,7 @@
$searchInput.data('placement', 'bottom');
$searchInput.data(
'template',
- '
{{ else if .Site.Params.algolia_docsearch -}}
@@ -13,21 +13,24 @@
{{ end -}}
{{ $offlineSearchLink := $offlineSearchIndex.RelPermalink -}}
-
+
+
+
+
{{ end -}}
diff --git a/userguide/content/en/docs/adding-content/navigation.md b/userguide/content/en/docs/adding-content/navigation.md
index 7ff60b1f64..0e05e50dc3 100644
--- a/userguide/content/en/docs/adding-content/navigation.md
+++ b/userguide/content/en/docs/adding-content/navigation.md
@@ -491,10 +491,8 @@ The width of the search results popover will automatically widen according to th
If you want to limit the width, add the following scss into `assets/scss/_variables_project.scss`.
```scss
-body {
- .popover.offline-search-result {
- max-width: 460px;
- }
+.td-offline-search-results {
+ max-width: 460px;
}
```