Skip to content

Commit cf7c797

Browse files
committed
fix: reserve space for Google search and remove slide-in animation
Add min-height to .search-bar-container in both _layout.scss and help/common/css/styles.scss so the Google CSE widget has allocated space before it loads, eliminating CLS on page navigation. Remove the slideInDown animation that caused a visible fade-in on every page load.
1 parent 113e45c commit cf7c797

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_sass/_layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ h3 {
145145
}
146146
}
147147

148+
.search-bar-container {
149+
min-height: 92px;
150+
}
151+
148152
.search-bar-container *,
149153
.search-bar-container *:before,
150154
.search-bar-container *:after {

help/common/css/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ $nav-text-color: $text-color;
15761576
display: flex;
15771577
justify-content: center;
15781578
margin-bottom: 30px;
1579-
animation: slideInDown 1s ease-out;
1579+
min-height: 92px;
15801580
}
15811581

15821582
.search-bar {

0 commit comments

Comments
 (0)