Skip to content

Commit 51b034b

Browse files
authored
[W-18013982] fix search bar CSS and set analytics mode to legacy (#865)
* upgrade coveo + set analytics mode to legacy * update search toolbar CSS to unhide it * add coveo CSS * remove coveo CSS
1 parent f6f4913 commit 51b034b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/css/globals/global.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ body {
5353
top: 0 !important;
5454
}
5555

56+
& .search-toolbar {
57+
padding-top: var(--sm) !important;
58+
}
59+
5660
&:has(.top-banner:not(.hide)) {
5761
& > div.flex.container.wrapper {
5862
transform: translateY(50px);
5963
}
64+
65+
& .search-toolbar {
66+
padding-top: 60px !important;
67+
}
6068
}
6169
}
6270

@@ -68,6 +76,10 @@ body {
6876
& .top-banner {
6977
top: var(--header-height);
7078
}
79+
80+
& .search-toolbar {
81+
padding-top: 85px;
82+
}
7183
}
7284

7385
&.header-promo-closed,

src/partials/head/head-scripts/coveo-search-scripts.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<script
22
type="module"
3-
src="https://static.cloud.coveo.com/atomic/v3.7.0/atomic.esm.js"
4-
integrity="sha512-fLs7ot1PpQgZRoHpoVrxF2zWq6OZsKE7uaZYVmiTnmwTUIehgr/nvfNhqcbPP0PWfy81tEBxMcXJe8H67sA1Pg=="
5-
crossorigin="anonymous">
3+
src="https://static.cloud.coveo.com/atomic/v3.19.1/atomic.esm.js"
4+
>
65
</script>
76
<script nonce="**CSP_NONCE**">
87
(async () => {
@@ -12,6 +11,7 @@
1211
if (searchInterface) {
1312
await searchInterface.initialize({
1413
accessToken,
14+
analytics: {analyticsMode: 'legacy'},
1515
organizationId,
1616
});
1717
if (window.location.href.includes('/search')) searchInterface.executeFirstSearch();

0 commit comments

Comments
 (0)