Files
web/components/HotelReservation/TripAdvisorChip/index.tsx
Niclas Edenvin 501c6be22a Merged in fix/sw-1242-tripadvisor-not-clickable (pull request #1139)
fix(SW-1242): increase touch target of trip advisor icon

* fix(SW-1242): increase touch target of trip advisor icon


Approved-by: Pontus Dreij
2025-01-07 12:52:23 +00:00

19 lines
656 B
TypeScript

import { TripAdvisorIcon } from "@/components/Icons"
import Caption from "@/components/TempDesignSystem/Text/Caption"
import styles from "./tripAdvisorChip.module.css"
import type { TripAdvisorProps } from "@/types/components/hotelReservation/tripAdvisorProps"
export default function TripAdvisorChip({ rating }: TripAdvisorProps) {
return (
// Wrapping the chip in a transparent container with some padding to increase the touch target
<div className={styles.container}>
<div className={styles.tripAdvisor}>
<TripAdvisorIcon color="burgundy" />
<Caption color="burgundy">{rating}</Caption>
</div>
</div>
)
}