feat(SW-340): Added scroll to top button

This commit is contained in:
Pontus Dreij
2024-11-08 10:00:53 +01:00
parent 2748120890
commit 5f46844b9b
22 changed files with 238 additions and 99 deletions

View File

@@ -12,6 +12,10 @@
width: 100%;
}
.card.active {
border: 1px solid var(--Base-Border-Hover);
}
.imageContainer {
grid-area: image;
position: relative;

View File

@@ -17,12 +17,13 @@ import { hotelCardVariants } from "./variants"
import styles from "./hotelCard.module.css"
import { HotelCardListingType } from "@/types/components/hotelReservation/selectHotel/hotelCardListingProps"
import { HotelCardListingTypeEnum } from "@/types/components/hotelReservation/selectHotel/hotelCardListingProps"
import type { HotelCardProps } from "@/types/components/hotelReservation/selectHotel/hotelCardProps"
export default function HotelCard({
hotel,
type = HotelCardListingType.PageListing,
type = HotelCardListingTypeEnum.PageListing,
state = "default",
}: HotelCardProps) {
const intl = useIntl()
@@ -33,6 +34,7 @@ export default function HotelCard({
const classNames = hotelCardVariants({
type,
state,
})
return (

View File

@@ -8,8 +8,13 @@ export const hotelCardVariants = cva(styles.card, {
pageListing: styles.pageListing,
mapListing: styles.mapListing,
},
state: {
active: styles.active,
default: styles.default,
},
},
defaultVariants: {
type: "pageListing",
state: "default",
},
})