Merged in fix/SW-2684-booking-widget-text-overflow (pull request #2048)
fix(SW-2684): truncate overflowing text in booking widget * fix: truncate overflowing text in booking widget * fix: change Body to Typography and css selector fix Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -187,6 +187,12 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.triggerDesktop > span {
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.pickerContainerDesktop {
|
.pickerContainerDesktop {
|
||||||
--header-height: 72px;
|
--header-height: 72px;
|
||||||
--sticky-button-height: 140px;
|
--sticky-button-height: 140px;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { useFormContext, useWatch } from "react-hook-form"
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
import { useMediaQuery } from "usehooks-ts"
|
import { useMediaQuery } from "usehooks-ts"
|
||||||
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import PickerForm from "./Form"
|
import PickerForm from "./Form"
|
||||||
|
|
||||||
@@ -174,9 +174,9 @@ function Trigger({
|
|||||||
type="button"
|
type="button"
|
||||||
onPress={triggerFn}
|
onPress={triggerFn}
|
||||||
>
|
>
|
||||||
<Body color="uiTextHighContrast">
|
<Typography variant="Body/Paragraph/mdRegular">
|
||||||
<span>{parts.join(", ")}</span>
|
<span>{parts.join(", ")}</span>
|
||||||
</Body>
|
</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user