Skip to content

Commit df77716

Browse files
authored
Merge pull request #2547 from hashicorp/alex-ju/website-page-header-fix
Fix position for autocomplete container
2 parents 27e782b + 1a8ba62 commit df77716

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

website/app/styles/doc-components/algolia-search/index.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
@import "./results";
1111

1212
// "autocomplete" target container - not used
13-
// .doc-algolia-search__autocomplete-container {}
13+
.doc-algolia-search__autocomplete-container {
14+
// we assign it a position absolute to remove it from the layout flow, so the `gap` property of the parent flex container doesn't get applied to this as well
15+
position: absolute;
16+
}
1417

1518
// root container of the "autocomplete" injected DOM elements (only the button, in "detached" mode)
1619
// notice: we hide it and trigger it via the "fake" buttons in the header

0 commit comments

Comments
 (0)