File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,17 @@ botiga.stickyHeader = {
780
780
let topVal = 0 ,
781
781
convertToPositive = false ;
782
782
783
+ // Remove any existing sticky visibility classes
784
+ above_header_row . classList . remove ( 'bhfb-sticky-hidden' ) ;
785
+ main_header_row . classList . remove ( 'bhfb-sticky-hidden' ) ;
786
+ below_header_row . classList . remove ( 'bhfb-sticky-hidden' ) ;
787
+
783
788
if ( bhfb . classList . contains ( 'sticky-row-main-header-row' ) ) {
789
+ // Hide bottom row when main row is sticky
790
+ if ( ! below_header_row . classList . contains ( 'bt-d-none' ) ) {
791
+ below_header_row . classList . add ( 'bhfb-sticky-hidden' ) ;
792
+ }
793
+
784
794
if ( ! above_header_row . classList . contains ( 'bt-d-none' ) ) {
785
795
topVal = above_header_row . clientHeight ;
786
796
Original file line number Diff line number Diff line change 34
34
transition : ease background-color 300ms , ease border-bottom-color 300ms , ease height 300ms ;
35
35
}
36
36
37
+ // Hide rows when sticky header is active and they shouldn't be visible
38
+ .sticky-header-active .bhfb-sticky-hidden {
39
+ display : none !important ;
40
+ }
41
+
42
+ // Hide bottom row when main row is sticky
43
+ .sticky-header-active .sticky-row-main-header-row .bhfb-below_header_row {
44
+ display : none !important ;
45
+ }
46
+
37
47
.bhfb-main_header_row {
38
48
min-height : 100px ;
39
49
}
You can’t perform that action at this time.
0 commit comments