fix(sw-350): changed to data-open
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
.rooms,
|
.rooms,
|
||||||
.vouchers,
|
.vouchers,
|
||||||
.when,
|
.when,
|
||||||
.whenOpen,
|
|
||||||
.where {
|
.where {
|
||||||
background-color: var(--Base-Background-Primary-Normal);
|
background-color: var(--Base-Background-Primary-Normal);
|
||||||
border-radius: var(--Corner-radius-Medium);
|
border-radius: var(--Corner-radius-Medium);
|
||||||
@@ -35,8 +34,7 @@
|
|||||||
|
|
||||||
.rooms,
|
.rooms,
|
||||||
.vouchers,
|
.vouchers,
|
||||||
.when,
|
.when {
|
||||||
.whenOpen {
|
|
||||||
padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
|
padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +61,6 @@
|
|||||||
|
|
||||||
.rooms,
|
.rooms,
|
||||||
.when,
|
.when,
|
||||||
.whenOpen,
|
|
||||||
.where {
|
.where {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -74,14 +71,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.rooms,
|
.rooms,
|
||||||
.when,
|
.when {
|
||||||
.whenOpen {
|
|
||||||
padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
|
padding: var(--Spacing-x1) var(--Spacing-x-one-and-half);
|
||||||
border-radius: var(--Corner-radius-Small);
|
border-radius: var(--Corner-radius-Small);
|
||||||
}
|
}
|
||||||
|
|
||||||
.when:hover,
|
.when:hover,
|
||||||
.rooms:hover,
|
.rooms:hover,
|
||||||
.whenOpen,
|
.when[data-open="true"],
|
||||||
.rooms:has(.input:active, .input:focus, .input:focus-within) {
|
.rooms:has(.input:active, .input:focus, .input:focus-within) {
|
||||||
background-color: var(--Base-Surface-Primary-light-Hover-alt);
|
background-color: var(--Base-Surface-Primary-light-Hover-alt);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default function FormContent({
|
|||||||
<div className={styles.where}>
|
<div className={styles.where}>
|
||||||
<Search locations={locations} />
|
<Search locations={locations} />
|
||||||
</div>
|
</div>
|
||||||
<div className={isDatePickerOpen ? styles.whenOpen : styles.when}>
|
<div className={styles.when} data-open={isDatePickerOpen}>
|
||||||
<Caption color="red" textTransform="bold">
|
<Caption color="red" textTransform="bold">
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
{ id: "booking.nights" },
|
{ id: "booking.nights" },
|
||||||
|
|||||||
Reference in New Issue
Block a user