fix(BOOK-711): Added isFloating prop to decide when the booking widget should have a border radius

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-28 12:02:42 +00:00
parent 70838060e5
commit ead34c07ee
9 changed files with 74 additions and 45 deletions

View File

@@ -14,7 +14,10 @@
/* To avoid this "flash" the styling is set to transparent) */
/* It is a non-standard css proprty, so shouldn't have too much of an effect on accessibility. */
-webkit-tap-highlight-color: transparent;
border-radius: var(--Corner-Radius-md);
&.floating {
border-radius: var(--Corner-Radius-md);
}
}
.complete {

View File

@@ -20,9 +20,11 @@ import type { BookingWidgetSchema } from "../Client"
type BookingWidgetToggleButtonProps = {
openMobileSearch: () => void
isFloating: boolean
}
export default function MobileToggleButton({
openMobileSearch,
isFloating,
}: BookingWidgetToggleButtonProps) {
const intl = useIntl()
const lang = useLang()
@@ -99,7 +101,8 @@ export default function MobileToggleButton({
<Button
className={cx(
styles.mobileToggleButton,
locationAndDateIsSet ? styles.complete : styles.partial
locationAndDateIsSet ? styles.complete : styles.partial,
{ [styles.floating]: isFloating }
)}
onPress={openMobileSearch}
>