Merged in feature/SW-3595-sas-info-boxes (pull request #3177)
Feature/SW-3595 Add info boxes to SAS start page & Eurobonus alert to select-hotel page on SAS
* wip
* feat(SW-3595): Add info boxes to SAS start page
* Add InfoBox to design-system
* Add background gradient to SAS start page
* update variable naming and conditionalize the eurobonus message on select-hotel
* SAS startpage update default message
* make select-hotel a bit more generic with slot={} instead of alert={}
Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
.floatingBookingWidget {
|
||||
width: var(--max-width-content);
|
||||
margin: 0 auto;
|
||||
min-height: 88px;
|
||||
position: relative;
|
||||
|
||||
.floatingBackground {
|
||||
@@ -25,9 +24,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) and (max-width: 1366px) {
|
||||
.floatingBookingWidget {
|
||||
min-height: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,10 +16,10 @@ export function FloatingBookingWidgetClient(props: Props) {
|
||||
useEffect(() => {
|
||||
observerRef.current = new IntersectionObserver(
|
||||
([entry]) => {
|
||||
const hasScrolledPastTop = entry.boundingClientRect.top < 0
|
||||
const hasScrolledPastTop = entry.boundingClientRect.bottom < 0
|
||||
setStickyTop(hasScrolledPastTop)
|
||||
},
|
||||
{ threshold: 0, rootMargin: "0px 0px -100% 0px" }
|
||||
{ threshold: 0, rootMargin: "0px 0px 0% 0px" }
|
||||
)
|
||||
|
||||
if (containerRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user