File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -725,13 +725,6 @@ body:not(:has(.main-layout)) header atomic-search-interface {
725
725
}
726
726
}
727
727
728
- @media (max-width : 1023px ) {
729
- /* Show on search page with facet if it is hidden */
730
- body : has (atomic-search-layout ) header atomic-search-interface {
731
- display : block;
732
- }
733
- }
734
-
735
728
/* MARK: Product Selector
736
729
*/
737
730
Original file line number Diff line number Diff line change @@ -16,3 +16,19 @@ document.addEventListener('click', (e) => {
16
16
}
17
17
}
18
18
} ) ;
19
+
20
+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
21
+ const sidebar = document . querySelector ( '.sidebar__ul' ) ;
22
+
23
+ if ( ! sidebar ) return ;
24
+
25
+ const activeLink = sidebar . querySelector ( '.sidebar__link--current' ) ;
26
+
27
+ if ( activeLink ) {
28
+ activeLink . scrollIntoView ( {
29
+ behavior : 'auto' ,
30
+ block : 'center' ,
31
+ inline : 'nearest' ,
32
+ } ) ;
33
+ }
34
+ } ) ;
Original file line number Diff line number Diff line change 121
121
122
122
<!-- Facet Section -->
123
123
< atomic-layout-section section ="facets ">
124
- < atomic-search-box id ="search-standalone-searchpage "> </ atomic-search-box >
125
124
< atomic-facet field ="f5_product " label ="Show by product "> </ atomic-facet >
126
125
< atomic-refine-toggle > </ atomic-refine-toggle >
127
126
</ atomic-layout-section >
You can’t perform that action at this time.
0 commit comments